Class CreateOccMetricAlarmDetails
Payload for creating an OccMetricAlarm.
Inherited Members
Namespace: Oci.DemandsignalService.Models
Assembly: OCI.DotNetSDK.Demandsignal.dll
Syntax
public class CreateOccMetricAlarmDetails
Properties
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Compartment OCID in which the alarm is created. |
Remarks
Required
DefinedTags
Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, Dictionary<string, object>> | Defined tags for this resource. Each key is predefined and scoped to a namespace.
For more information, see Resource Tags.
|
Description
Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Optional description for the alarm. |
DisplayName
Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Human-readable name for the alarm. |
Remarks
Required
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> | Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
For more information, see Resource Tags.
|
Frequency
Declaration
[Required(ErrorMessage = "Frequency is required.")]
[JsonProperty(PropertyName = "frequency")]
[JsonConverter(typeof(StringEnumConverter))]
public OccMetricAlarm.FrequencyEnum? Frequency { get; set; }
Property Value
| Type | Description |
|---|---|
| OccMetricAlarm.FrequencyEnum? | Frequency at which notifications should be sent. |
Remarks
Required
IsActive
Declaration
[Required(ErrorMessage = "IsActive is required.")]
[JsonProperty(PropertyName = "isActive")]
public bool? IsActive { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? | Alarm active status. |
Remarks
Required
LifecycleState
Declaration
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(StringEnumConverter))]
public CreateOccMetricAlarmDetails.LifecycleStateEnum? LifecycleState { get; set; }
Property Value
| Type | Description |
|---|---|
| CreateOccMetricAlarmDetails.LifecycleStateEnum? | The current lifecycle state of the resource. |
ResourceConfiguration
Declaration
[Required(ErrorMessage = "ResourceConfiguration is required.")]
[JsonProperty(PropertyName = "resourceConfiguration")]
public BaseResourceConfiguration ResourceConfiguration { get; set; }
Property Value
| Type | Description |
|---|---|
| BaseResourceConfiguration |
Remarks
Required
Subscribers
Declaration
[JsonProperty(PropertyName = "subscribers")]
public List<string> Subscribers { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> | List of topic OCIDs for notifications. |
Threshold
Declaration
[Required(ErrorMessage = "Threshold is required.")]
[JsonProperty(PropertyName = "threshold")]
public int? Threshold { get; set; }
Property Value
| Type | Description |
|---|---|
| int? | Threshold at which alarm must be triggered. |
Remarks
Required
ThresholdType
Declaration
[JsonProperty(PropertyName = "thresholdType")]
[JsonConverter(typeof(StringEnumConverter))]
public CreateOccMetricAlarmDetails.ThresholdTypeEnum? ThresholdType { get; set; }
Property Value
| Type | Description |
|---|---|
| CreateOccMetricAlarmDetails.ThresholdTypeEnum? | Units in which threshold is being stored. |