-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
MetricSettings.cs
44 lines (38 loc) · 2.17 KB
/
MetricSettings.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
namespace Azure.ResourceManager.Monitor.Models
{
/// <summary> Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric. </summary>
public partial class MetricSettings
{
/// <summary> Initializes a new instance of MetricSettings. </summary>
/// <param name="isEnabled"> a value indicating whether this category is enabled. </param>
public MetricSettings(bool isEnabled)
{
IsEnabled = isEnabled;
}
/// <summary> Initializes a new instance of MetricSettings. </summary>
/// <param name="timeGrain"> the timegrain of the metric in ISO8601 format. </param>
/// <param name="category"> Name of a Diagnostic Metric category for a resource type this setting is applied to. To obtain the list of Diagnostic metric categories for a resource, first perform a GET diagnostic settings operation. </param>
/// <param name="isEnabled"> a value indicating whether this category is enabled. </param>
/// <param name="retentionPolicy"> the retention policy for this category. </param>
internal MetricSettings(TimeSpan? timeGrain, string category, bool isEnabled, RetentionPolicy retentionPolicy)
{
TimeGrain = timeGrain;
Category = category;
IsEnabled = isEnabled;
RetentionPolicy = retentionPolicy;
}
/// <summary> the timegrain of the metric in ISO8601 format. </summary>
public TimeSpan? TimeGrain { get; set; }
/// <summary> Name of a Diagnostic Metric category for a resource type this setting is applied to. To obtain the list of Diagnostic metric categories for a resource, first perform a GET diagnostic settings operation. </summary>
public string Category { get; set; }
/// <summary> a value indicating whether this category is enabled. </summary>
public bool IsEnabled { get; set; }
/// <summary> the retention policy for this category. </summary>
public RetentionPolicy RetentionPolicy { get; set; }
}
}