-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ResourceMetricDefinition.cs
59 lines (53 loc) · 2.82 KB
/
ResourceMetricDefinition.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.AppService.Models
{
/// <summary> Metadata for the metrics. </summary>
public partial class ResourceMetricDefinition : ResourceData
{
/// <summary> Initializes a new instance of ResourceMetricDefinition. </summary>
public ResourceMetricDefinition()
{
MetricAvailabilities = new ChangeTrackingList<ResourceMetricAvailability>();
Properties = new ChangeTrackingDictionary<string, string>();
}
/// <summary> Initializes a new instance of ResourceMetricDefinition. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="unit"> Unit of the metric. </param>
/// <param name="primaryAggregationType"> Primary aggregation type. </param>
/// <param name="metricAvailabilities"> List of time grains supported for the metric together with retention period. </param>
/// <param name="resourceUri"> Resource URI. </param>
/// <param name="properties"> Resource metric definition properties. </param>
/// <param name="kind"> Kind of resource. </param>
internal ResourceMetricDefinition(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string unit, string primaryAggregationType, IReadOnlyList<ResourceMetricAvailability> metricAvailabilities, Uri resourceUri, IReadOnlyDictionary<string, string> properties, string kind) : base(id, name, resourceType, systemData)
{
Unit = unit;
PrimaryAggregationType = primaryAggregationType;
MetricAvailabilities = metricAvailabilities;
ResourceUri = resourceUri;
Properties = properties;
Kind = kind;
}
/// <summary> Unit of the metric. </summary>
public string Unit { get; }
/// <summary> Primary aggregation type. </summary>
public string PrimaryAggregationType { get; }
/// <summary> List of time grains supported for the metric together with retention period. </summary>
public IReadOnlyList<ResourceMetricAvailability> MetricAvailabilities { get; }
/// <summary> Resource URI. </summary>
public Uri ResourceUri { get; }
/// <summary> Resource metric definition properties. </summary>
public IReadOnlyDictionary<string, string> Properties { get; }
/// <summary> Kind of resource. </summary>
public string Kind { get; set; }
}
}