Show / Hide Table of Contents

Class CreateMonitoringTemplateDetails

The information about new monitoring template. The monitoring template name should be unique in a compartment.

Inheritance
object
CreateMonitoringTemplateDetails
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.StackmonitoringService.Models
Assembly: OCI.DotNetSDK.Stackmonitoring.dll
Syntax
public class CreateMonitoringTemplateDetails

Properties

CompartmentId

Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

The OCID of the compartment containing the monitoringTemplate.

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. Example: {"foo-namespace": {"bar-key": "value"}}

Description

Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type Description
string

A user-friendly description for the monitoring template. It does not have to be unique, and it's changeable. Avoid entering confidential information.

Destinations

Declaration
[Required(ErrorMessage = "Destinations is required.")]
[JsonProperty(PropertyName = "destinations")]
public List<string> Destinations { get; set; }
Property Value
Type Description
List<string>

A list of destinations for alarm notifications. Each destination is represented by the OCID of a related resource, such as a topic.

Remarks

Required

DisplayName

Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

A user-friendly name for the monitoring template. It is unique and mutable in nature. Avoid entering confidential information.

Remarks

Required

FreeformTags

Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type Description
Dictionary<string, string>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

IsAlarmsEnabled

Declaration
[JsonProperty(PropertyName = "isAlarmsEnabled")]
public bool? IsAlarmsEnabled { get; set; }
Property Value
Type Description
bool?

Whether the alarm is enabled or disabled, it will be Enabled by default.

IsSplitNotificationEnabled

Declaration
[JsonProperty(PropertyName = "isSplitNotificationEnabled")]
public bool? IsSplitNotificationEnabled { get; set; }
Property Value
Type Description
bool?

Whether the alarm notification is enabled or disabled, it will be Enabled by default.

Members

Declaration
[Required(ErrorMessage = "Members is required.")]
[JsonProperty(PropertyName = "members")]
public List<MemberReference> Members { get; set; }
Property Value
Type Description
List<MemberReference>

List of members of this monitoring template

Remarks

Required

MessageFormat

Declaration
[JsonProperty(PropertyName = "messageFormat")]
[JsonConverter(typeof(StringEnumConverter))]
public MessageFormat? MessageFormat { get; set; }
Property Value
Type Description
MessageFormat?

The format to use for alarm notifications.

RepeatNotificationDuration

Declaration
[JsonProperty(PropertyName = "repeatNotificationDuration")]
public string RepeatNotificationDuration { get; set; }
Property Value
Type Description
string

The frequency for re-submitting alarm notifications, if the alarm keeps firing without interruption. Format defined by ISO 8601. For example, PT4H indicates four hours. Minimum- PT1M. Maximum - P30D.

In this article
Back to top