Azure预算警报架构模板
我正在设置一些Azure预算警报,以调用逻辑应用程序webhook来执行操作 在预算中,我指定了以预算的25%、50%和75%启动行动组的警报条件。操作组有一个使用公共警报模式调用逻辑应用程序webhook的操作 我有一个“当收到HTTP请求时”的逻辑应用程序,设置了一个步骤来处理请求 在此处理步骤中,我希望能够访问触发警报的预算的详细信息(预算名称,%of budget等),但示例架构不包含该信息:Azure预算警报架构模板,azure,azure-functions,Azure,Azure Functions,我正在设置一些Azure预算警报,以调用逻辑应用程序webhook来执行操作 在预算中,我指定了以预算的25%、50%和75%启动行动组的警报条件。操作组有一个使用公共警报模式调用逻辑应用程序webhook的操作 我有一个“当收到HTTP请求时”的逻辑应用程序,设置了一个步骤来处理请求 在此处理步骤中,我希望能够访问触发警报的预算的详细信息(预算名称,%of budget等),但示例架构不包含该信息: { "properties": { "data": {
{
"properties": {
"data": {
"properties": {
"alertContext": {
"properties": {
"condition": {
"properties": {
"allOf": {
"items": {
"properties": {
"dimensions": {
"items": {
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
},
"required": [
"name",
"value"
],
"type": "object"
},
"type": "array"
},
"metricName": {
"type": "string"
},
"metricNamespace": {
"type": "string"
},
"metricValue": {
"type": "number"
},
"operator": {
"type": "string"
},
"threshold": {
"type": "string"
},
"timeAggregation": {
"type": "string"
}
},
"required": [
"metricName",
"metricNamespace",
"operator",
"threshold",
"timeAggregation",
"dimensions",
"metricValue"
],
"type": "object"
},
"type": "array"
},
"windowSize": {
"type": "string"
}
},
"type": "object"
},
"conditionType": {
"type": "string"
},
"properties": {}
},
"type": "object"
},
"essentials": {
"properties": {
"alertContextVersion": {
"type": "string"
},
"alertId": {
"type": "string"
},
"alertRule": {
"type": "string"
},
"alertTargetIDs": {
"items": {
"type": "string"
},
"type": "array"
},
"description": {
"type": "string"
},
"essentialsVersion": {
"type": "string"
},
"firedDateTime": {
"type": "string"
},
"monitorCondition": {
"type": "string"
},
"monitoringService": {
"type": "string"
},
"originAlertId": {
"type": "string"
},
"resolvedDateTime": {
"type": "string"
},
"severity": {
"type": "string"
},
"signalType": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"schemaId": {
"type": "string"
}
},
"type": "object"
}
是否存在一个架构模板,其中包含预算警报的所有可能字段?这样我的Logic应用程序就可以在后续步骤中将这些预算字段用作动态内容
谢谢我创建了一个逻辑应用程序,将输入的json放入blob存储中。将此逻辑应用程序添加为预算警报操作组中的Webhook 我收到了以下消息。这看起来像预算警报的模式
{
"schemaId": "AIP Budget Notification",
"data": {
"SubscriptionName": "",
"SubscriptionId": "",
"EnrollmentNumber": "",
"DepartmentName": "",
"AccountName": "",
"BillingAccountId": "",
"BillingProfileId": "",
"InvoiceSectionId": "",
"ResourceGroup": "",
"SpendingAmount": "",
"BudgetStartDate": "",
"Budget": "",
"Unit": "",
"BudgetCreator": "",
"BudgetName": "",
"BudgetType": "",
"NotificationThresholdAmount": ""
}
}
看起来微软在他们的文档中确实提到了这个模式,但是有点隐藏(在下面的文章中查找json)
您找到架构了吗?@Venky没有,我还没有找到。我在github-中提出了一个问题。希望他们会回应。谢谢,我也能做同样的事情,看起来很有效。