Partager via


Alert Class

Definition

An individual alert.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.AlertTypeConverter))]
public class Alert : Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IAlert, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IAlertInternal, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.AlertTypeConverter))>]
type Alert = class
    interface IAlert
    interface IJsonSerializable
    interface IProxyResource
    interface IAlertInternal
    interface IProxyResourceInternal
    interface IValidates
Public Class Alert
Implements IAlert, IAlertInternal, IValidates
Inheritance
Alert
Attributes
Implements

Constructors

Alert()

Creates an new Alert instance.

Properties

CloseTime

dateTime in which alert was closed

CostEntityId

related budget

CreationTime

dateTime in which alert was created

DefinitionCategory

Alert category

DefinitionCriterion

Criteria that triggered alert

DefinitionType

type of alert

Description

Alert description

DetailAmount

budget threshold amount

DetailCompanyName

company name

DetailContactEmail

list of emails to contact

DetailContactGroup

list of action groups to broadcast to

DetailContactRole

list of contact roles

DetailCurrentSpend

current spend

DetailDepartmentName

department name

DetailEnrollmentEndDate

datetime of enrollmentEndDate

DetailEnrollmentNumber

enrollment number

DetailEnrollmentStartDate

datetime of enrollmentStartDate

DetailInvoicingThreshold

invoicing threshold

DetailMeterFilter

array of meters to filter by

DetailOperator

operator used to compare currentSpend with amount

DetailOverridingAlert

overriding alert

DetailPeriodStartDate

datetime of periodStartDate

DetailResourceFilter

array of resources to filter by

DetailResourceGroupFilter

array of resourceGroups to filter by

DetailTagFilter

tags to filter by

DetailThreshold

notification threshold percentage as a decimal which activated this alert

DetailTimeGrainType

Type of timegrain cadence

DetailTriggeredBy

notificationId that triggered this alert

DetailUnit

unit of currency being used

ETag

eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.

Id

Resource Id.

ModificationTime

dateTime in which alert was last modified

Name

Resource name.

Source

Source of alert

Status

alert status

StatusModificationTime

dateTime in which the alert status was last modified

StatusModificationUserName

User who last modified the alert

Type

Resource type.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Alert.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Alert.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IAlert.

FromJsonString(String)

Creates a new instance of Alert, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Alert into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Validate(IEventListener)

Validates that this object meets the validation criteria.

Explicit Interface Implementations

IAlertInternal.Definition

Internal Acessors for Definition

IAlertInternal.Detail

Internal Acessors for Detail

IAlertInternal.Property

Internal Acessors for Property

IProxyResourceInternal.Id

Internal Acessors for Id

IProxyResourceInternal.Name

Internal Acessors for Name

IProxyResourceInternal.Type

Internal Acessors for Type

Applies to