Class MetricExtension
Detailed information of the Metric Extension resource
Inherited Members
Namespace: Oci.StackmonitoringService.Models
Assembly: OCI.DotNetSDK.Stackmonitoring.dll
Syntax
public class MetricExtension
Properties
CollectionMethod
Declaration
[Required(ErrorMessage = "CollectionMethod is required.")]
[JsonProperty(PropertyName = "collectionMethod")]
public string CollectionMethod { get; set; }
Property Value
Type | Description |
---|---|
string | Collection Method Metric Extension applies |
Remarks
Required
CollectionRecurrences
Declaration
[Required(ErrorMessage = "CollectionRecurrences is required.")]
[JsonProperty(PropertyName = "collectionRecurrences")]
public string CollectionRecurrences { get; set; }
Property Value
Type | Description |
---|---|
string | Schedule of metric extension should use RFC 5545 format -> recur-rule-part = "FREQ";"INTERVAL" where FREQ rule part identifies the type of recurrence rule. Valid values are "MINUTELY","HOURLY","DAILY" to specify repeating events based on an interval of a minute, an hour and a day or more. Example- FREQ=DAILY;INTERVAL=1 |
Remarks
Required
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | Compartment Identifier OCID |
Remarks
Required
CreatedBy
Declaration
[JsonProperty(PropertyName = "createdBy")]
public string CreatedBy { get; set; }
Property Value
Type | Description |
---|---|
string | Created by user |
Description
Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string | Description of the metric extension. |
DisplayName
Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string | Metric Extension resource display name |
Remarks
Required
EnabledOnResources
Declaration
[JsonProperty(PropertyName = "enabledOnResources")]
public List<EnabledResourceDetails> EnabledOnResources { get; set; }
Property Value
Type | Description |
---|---|
List<EnabledResourceDetails> | List of resource objects on which this metric extension is enabled. |
EnabledOnResourcesCount
Declaration
[JsonProperty(PropertyName = "enabledOnResourcesCount")]
public int? EnabledOnResourcesCount { get; set; }
Property Value
Type | Description |
---|---|
int? | Count of resources on which this metric extension is enabled. |
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of Metric Extension resource |
Remarks
Required
LastUpdatedBy
Declaration
[JsonProperty(PropertyName = "lastUpdatedBy")]
public string LastUpdatedBy { get; set; }
Property Value
Type | Description |
---|---|
string | Last updated by user |
LifecycleState
Declaration
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public MetricExtensionLifeCycleStates? LifecycleState { get; set; }
Property Value
Type | Description |
---|---|
MetricExtensionLifeCycleStates? | The current lifecycle state of the metric extension |
MetricList
Declaration
[Required(ErrorMessage = "MetricList is required.")]
[JsonProperty(PropertyName = "metricList")]
public List<Metric> MetricList { get; set; }
Property Value
Type | Description |
---|---|
List<Metric> | List of metrics which are part of this metric extension |
Remarks
Required
Name
Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | Metric Extension resource name |
Remarks
Required
QueryProperties
Declaration
[Required(ErrorMessage = "QueryProperties is required.")]
[JsonProperty(PropertyName = "queryProperties")]
public MetricExtensionQueryProperties QueryProperties { get; set; }
Property Value
Type | Description |
---|---|
MetricExtensionQueryProperties |
Remarks
Required
ResourceType
Declaration
[Required(ErrorMessage = "ResourceType is required.")]
[JsonProperty(PropertyName = "resourceType")]
public string ResourceType { get; set; }
Property Value
Type | Description |
---|---|
string | Resource type to which Metric Extension applies |
Remarks
Required
ResourceUri
Declaration
[JsonProperty(PropertyName = "resourceUri")]
public string ResourceUri { get; set; }
Property Value
Type | Description |
---|---|
string | The URI path that the user can do a GET on to access the metric extension metadata |
Status
Declaration
[Required(ErrorMessage = "Status is required.")]
[JsonProperty(PropertyName = "status")]
[JsonConverter(typeof(ResponseEnumConverter))]
public MetricExtensionLifeCycleDetails? Status { get; set; }
Property Value
Type | Description |
---|---|
MetricExtensionLifeCycleDetails? | The current status of the metric extension i.e. whether it is Draft or Published |
Remarks
Required
TenantId
Declaration
[Required(ErrorMessage = "TenantId is required.")]
[JsonProperty(PropertyName = "tenantId")]
public string TenantId { get; set; }
Property Value
Type | Description |
---|---|
string | Tenant Identifier OCID |
Remarks
Required
TimeCreated
Declaration
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | Metric Extension creation time. An RFC3339 formatted datetime string. |
TimeUpdated
Declaration
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | Metric Extension update time. An RFC3339 formatted datetime string. |