gpt4 book ai didi

Azure 预算警报架构模板

转载 作者:行者123 更新时间:2023-12-02 08:01:06 29 4
gpt4 key购买 nike

我正在设置一些 Azure 预算警报来调用逻辑应用 Webhook 来执行操作。

在预算中,我指定了在预算的 25%、50% 和 75% 时触发操作组的警报条件。该操作组具有使用通用警报架构调用逻辑应用 Webhook 的操作。

我有一个“收到 HTTP 请求时”逻辑应用,设置为 simple alert payload以及处理请求的步骤。

在此处理步骤中,我希望访问触发警报的预算详细信息(预算名称、预算百分比等),但示例架构不包含该信息:

{
"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"
}

是否有某个地方有一个架构模板,其中包含预算警报的所有可能字段?这样我的逻辑应用就可以在后续步骤中使用这些预算字段作为动态内容。

谢谢

最佳答案

我创建了一个逻辑应用程序,它将输入 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)

https://learn.microsoft.com/en-us/azure/billing/billing-cost-management-budget-scenario#create-an-azure-logic-app-for-orchestration

关于Azure 预算警报架构模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56372361/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com