def METHOD_NAME(self, key, value, unit, dimensions):
    self._initialize()
    d = {
        'Name': key,
        'Value': value,
        'Dimensions': {
            'Policy': self.ctx.policy.name,
            'ResType': self.ctx.policy.resource_type,
            'SubscriptionId': self.subscription_id,
            'ExecutionId': self.ctx.execution_id,
            'ExecutionMode': self.ctx.policy.execution_mode,
            'Unit': unit
        }
    }
    for k, v in dimensions.items():
        d['Dimensions'][k] = v
    return d