次の方法で共有


AlertRuleResource コンストラクター

定義

オーバーロード

AlertRuleResource()

AlertRuleResource クラスの新しいインスタンスを初期化します。

AlertRuleResource(String, String, Boolean, RuleCondition, String, String, String, IDictionary<String,String>, String, String, String, String, RuleAction, IList<RuleAction>, Nullable<DateTime>)

AlertRuleResource クラスの新しいインスタンスを初期化します。

AlertRuleResource()

AlertRuleResource クラスの新しいインスタンスを初期化します。

public AlertRuleResource();
Public Sub New ()

適用対象

AlertRuleResource(String, String, Boolean, RuleCondition, String, String, String, IDictionary<String,String>, String, String, String, String, RuleAction, IList<RuleAction>, Nullable<DateTime>)

AlertRuleResource クラスの新しいインスタンスを初期化します。

public AlertRuleResource(string location, string alertRuleResourceName, bool isEnabled, Microsoft.Azure.Management.Monitor.Models.RuleCondition condition, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string kind = default, string etag = default, string description = default, string provisioningState = default, Microsoft.Azure.Management.Monitor.Models.RuleAction action = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.RuleAction> actions = default, DateTime? lastUpdatedTime = default);
new Microsoft.Azure.Management.Monitor.Models.AlertRuleResource : string * string * bool * Microsoft.Azure.Management.Monitor.Models.RuleCondition * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * string * string * string * Microsoft.Azure.Management.Monitor.Models.RuleAction * System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.RuleAction> * Nullable<DateTime> -> Microsoft.Azure.Management.Monitor.Models.AlertRuleResource
Public Sub New (location As String, alertRuleResourceName As String, isEnabled As Boolean, condition As RuleCondition, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional kind As String = Nothing, Optional etag As String = Nothing, Optional description As String = Nothing, Optional provisioningState As String = Nothing, Optional action As RuleAction = Nothing, Optional actions As IList(Of RuleAction) = Nothing, Optional lastUpdatedTime As Nullable(Of DateTime) = Nothing)

パラメーター

location
String

リソースの場所

alertRuleResourceName
String

アラート ルールの名前。

isEnabled
Boolean

アラート ルールが有効になっているかどうかを示すフラグ。

condition
RuleCondition

アラート ルールがアクティブ化される条件。

id
String

Azure リソース ID

name
String

Azure リソース名

type
String

Azure リソースタイプ

tags
IDictionary<String,String>

リソース タグ

kind
String

同じ種類のリソースに対して異なる UX エクスペリエンスをレンダリングするためにポータル/ツール/etc によって使用されるメタデータ。たとえば、ApiApps は Microsoft.Web/sites の種類の一種です。 サポートされている場合、リソース プロバイダーはこの値を検証して保持する必要があります。

etag
String

etag フィールドは必要 ありません 。 応答本文で指定する場合は、通常の etag 規則に従ってヘッダーとしても指定する必要があります。 エンティティ タグは、同じ要求されたリソースから 2 つ以上のエンティティを比較するために使用されます。 HTTP/1.1 では、etag (セクション 14.19)、If-Match (セクション 14.24)、If-None-Match (セクション 14.26)、およびIf-Range (セクション 14.27) ヘッダー フィールドのエンティティ タグを使用します。

description
String

アラート メールに含まれるアラート ルールの説明。

provisioningState
String

プロビジョニングの状態。

action
RuleAction

アラート ルールがアクティブになったとき、およびアラート条件が解決されたときに実行されるアクション。

actions
IList<RuleAction>

アラート ルールがアクティブになったとき、およびアラート条件が解決されたときに実行されるアクションの配列。

lastUpdatedTime
Nullable<DateTime>

規則が ISO8601 形式で最後に更新された時刻。

適用対象