Class MonitoredResourceType
The response object for create monitored resource type and get monitored resource type operations.
Inherited Members
Namespace: Oci.StackmonitoringService.Models
Assembly: OCI.DotNetSDK.Stackmonitoring.dll
Syntax
public class MonitoredResourceType
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 tenancy containing the resource type. |
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"} |
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | Monitored resource type identifier OCID. |
Remarks
Required
LifecycleState
Declaration
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public ResourceTypeLifecycleState? LifecycleState { get; set; }
Property Value
Type | Description |
---|---|
ResourceTypeLifecycleState? | Lifecycle state of the monitored resource type. |
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(ResponseEnumConverter))]
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(ResponseEnumConverter))]
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. |
SystemTags
Declaration
[JsonProperty(PropertyName = "systemTags")]
public Dictionary<string, Dictionary<string, object>> SystemTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud": {"free-tier-retained": "true"}} |
TimeCreated
Declaration
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date and time when the monitored resource type was created, expressed in RFC 3339 timestamp format. |
TimeUpdated
Declaration
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date and time when the monitored resource was updated, expressed in RFC 3339 timestamp format. |