Show / Hide Table of Contents

Class CreateMonitoredResourceTypeDetails

The information about new monitored resource type. The resource type name should be unique across tenancy. A set of resource types are created by the service by default. These resource types are available for all tenancies. Service provided resource types can not be duplicated or overwritten in any tenancy.

Inheritance
object
CreateMonitoredResourceTypeDetails
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 CreateMonitoredResourceTypeDetails

Properties

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

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 friendly description.

DisplayName

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

Monitored resource type display name.

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"}

Metadata

Declaration
[JsonProperty(PropertyName = "metadata")]
public ResourceTypeMetadataDetails Metadata { get; set; }
Property Value
Type Description
ResourceTypeMetadataDetails

MetricNamespace

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

Metric namespace for resource type.

Name

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

A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.

Remarks

Required

ResourceCategory

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

Resource Category to indicate the kind of resource type.

SourceType

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

Source type to indicate if the resource is stack monitoring discovered, OCI native resource, etc.

In this article
Back to top