MetricAlertResource コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
MetricAlertResource() |
MetricAlertResource クラスの新しいインスタンスを初期化します。 |
MetricAlertResource(String, Int32, Boolean, IList<String>, TimeSpan, TimeSpan, MetricAlertCriteria, String, String, String, IDictionary<String, String>, String, String, String, String, String, Nullable<Boolean>, IList<MetricAlertAction>, Nullable<DateTime>, Nullable<Boolean>) |
MetricAlertResource クラスの新しいインスタンスを初期化します。 |
MetricAlertResource()
MetricAlertResource クラスの新しいインスタンスを初期化します。
public MetricAlertResource ();
Public Sub New ()
適用対象
MetricAlertResource(String, Int32, Boolean, IList<String>, TimeSpan, TimeSpan, MetricAlertCriteria, String, String, String, IDictionary<String, String>, String, String, String, String, String, Nullable<Boolean>, IList<MetricAlertAction>, Nullable<DateTime>, Nullable<Boolean>)
MetricAlertResource クラスの新しいインスタンスを初期化します。
public MetricAlertResource (string location, int severity, bool enabled, System.Collections.Generic.IList<string> scopes, TimeSpan evaluationFrequency, TimeSpan windowSize, Microsoft.Azure.Management.Monitor.Models.MetricAlertCriteria criteria, 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 targetResourceType = default, string targetResourceRegion = default, bool? autoMitigate = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.MetricAlertAction> actions = default, DateTime? lastUpdatedTime = default, bool? isMigrated = default);
new Microsoft.Azure.Management.Monitor.Models.MetricAlertResource : string * int * bool * System.Collections.Generic.IList<string> * TimeSpan * TimeSpan * Microsoft.Azure.Management.Monitor.Models.MetricAlertCriteria * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * string * string * string * string * Nullable<bool> * System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.MetricAlertAction> * Nullable<DateTime> * Nullable<bool> -> Microsoft.Azure.Management.Monitor.Models.MetricAlertResource
Public Sub New (location As String, severity As Integer, enabled As Boolean, scopes As IList(Of String), evaluationFrequency As TimeSpan, windowSize As TimeSpan, criteria As MetricAlertCriteria, 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 targetResourceType As String = Nothing, Optional targetResourceRegion As String = Nothing, Optional autoMitigate As Nullable(Of Boolean) = Nothing, Optional actions As IList(Of MetricAlertAction) = Nothing, Optional lastUpdatedTime As Nullable(Of DateTime) = Nothing, Optional isMigrated As Nullable(Of Boolean) = Nothing)
パラメーター
- location
- String
リソースの場所
- severity
- Int32
アラートの重大度 {0、1、2、3、4}
- enabled
- Boolean
メトリック アラートが有効かどうかを示すフラグ。
- evaluationFrequency
- TimeSpan
メトリック アラートを評価する頻度を ISO 8601 期間形式で表します。
- windowSize
- TimeSpan
しきい値に基づいてアラート アクティビティを監視するために使用される期間 (ISO 8601 期間形式)。
- criteria
- MetricAlertCriteria
は、特定のアラート条件情報を定義します。
- 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
アラート メールに含まれるメトリック アラートの説明。
- targetResourceType
- String
アラートが作成または更新されるターゲット リソースのリソースの種類。 スコープにサブスクリプション、リソース グループ、または複数のリソースが含まれている場合は必須です。
- targetResourceRegion
- String
アラートが作成または更新されるターゲット リソースのリージョン。 スコープにサブスクリプション、リソース グループ、または複数のリソースが含まれている場合は必須です。
- actions
- IList<MetricAlertAction>
アラート ルールがアクティブになったとき、およびアラート条件が解決されたときに実行されるアクションの配列。
適用対象
Azure SDK for .NET