你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AlertPropertiesDetails 类

定义

警报详细信息。

public class AlertPropertiesDetails
type AlertPropertiesDetails = class
Public Class AlertPropertiesDetails
继承
AlertPropertiesDetails

构造函数

AlertPropertiesDetails()

初始化 AlertPropertiesDetails 的新实例。

属性

Amount

预算阈值金额。

CompanyName

公司名称。

ContactEmails

要联系的电子邮件列表。

ContactGroups

要广播到的操作组的列表。

ContactRoles

联系人角色列表。

CurrentSpend

当前支出。

DepartmentName

部门名称。

EnrollmentEndDate

enrollmentEndDate 的 datetime。

EnrollmentNumber

注册编号。

EnrollmentStartDate

enrollmentStartDate 的 datetime。

InvoicingThreshold

开票阈值。

MeterFilter

要筛选的计量数组

若要将 对象分配给此属性的 元素,请使用 FromObjectAsJson<T>(T, JsonSerializerOptions)

若要将已格式化的 json 字符串分配给此属性,请使用 FromString(String)

示例:

  • BinaryData.FromObjectAsJson (“foo”) 创建“foo”的有效负载。
  • BinaryData.FromString (“\”foo\“”) 创建“foo”的有效负载。
  • BinaryData.FromObjectAsJson (new { key = “value” }) 创建 { “key”: “value” } 的有效负载。
  • BinaryData.FromString (“{\”key\“: \”value\“}”) 创建 { “key”: “value” } 的有效负载。

Operator

运算符用于比较 currentSpend 与 amount。

OverridingAlert

替代警报。

PeriodStartDate

periodStartDate 的 datetime。

ResourceFilter

要筛选的资源数组

若要将 对象分配给此属性的 元素,请使用 FromObjectAsJson<T>(T, JsonSerializerOptions)

若要将已格式化的 json 字符串分配给此属性,请使用 FromString(String)

示例:

  • BinaryData.FromObjectAsJson (“foo”) 创建“foo”的有效负载。
  • BinaryData.FromString (“\”foo\“”) 创建“foo”的有效负载。
  • BinaryData.FromObjectAsJson (new { key = “value” }) 创建 { “key”: “value” } 的有效负载。
  • BinaryData.FromString (“{\”key\“: \”value\“}”) 创建 { “key”: “value” } 的有效负载。

ResourceGroupFilter

要筛选的 resourceGroup 数组

若要将 对象分配给此属性的 元素,请使用 FromObjectAsJson<T>(T, JsonSerializerOptions)

若要将已格式化的 json 字符串分配给此属性,请使用 FromString(String)

示例:

  • BinaryData.FromObjectAsJson (“foo”) 创建“foo”的有效负载。
  • BinaryData.FromString (“\”foo\“”) 创建“foo”的有效负载。
  • BinaryData.FromObjectAsJson (new { key = “value” }) 创建 { “key”: “value” } 的有效负载。
  • BinaryData.FromString (“{\”key\“: \”value\“}”) 创建 { “key”: “value” } 的有效负载。

TagFilter

要筛选的标记

若要将对象分配给此属性,请使用 FromObjectAsJson<T>(T, JsonSerializerOptions)

若要将已格式化的 json 字符串分配给此属性,请使用 FromString(String)

示例:

  • BinaryData.FromObjectAsJson (“foo”) 创建“foo”的有效负载。
  • BinaryData.FromString (“\”foo\“”) 创建“foo”的有效负载。
  • BinaryData.FromObjectAsJson (new { key = “value” }) 创建 { “key”: “value” } 的有效负载。
  • BinaryData.FromString (“{\”key\“: \”value\“}”) 创建 { “key”: “value” } 的有效负载。

Threshold

通知阈值百分比作为激活此警报的十进制数。

TimeGrainType

时间基数节奏的类型。

TriggeredBy

触发此警报的 notificationId。

Unit

使用的货币单位。

适用于