Class MonitoredResource
The response object for create monitored resource and get monitored resource operations. This contains information about the monitored resource. Credentials and credential aliases attributes will be returned as null due to security reasons.
Inherited Members
Namespace: Oci.StackmonitoringService.Models
Assembly: OCI.DotNetSDK.Stackmonitoring.dll
Syntax
public class MonitoredResource
Properties
Aliases
Declaration
[JsonProperty(PropertyName = "aliases")]
public MonitoredResourceAliasCredential Aliases { get; set; }
Property Value
| Type | Description |
|---|---|
| MonitoredResourceAliasCredential |
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
Credentials
Declaration
[JsonProperty(PropertyName = "credentials")]
public MonitoredResourceCredential Credentials { get; set; }
Property Value
| Type | Description |
|---|---|
| MonitoredResourceCredential |
DatabaseConnectionDetails
Declaration
[JsonProperty(PropertyName = "databaseConnectionDetails")]
public ConnectionDetails DatabaseConnectionDetails { get; set; }
Property Value
| Type | Description |
|---|---|
| ConnectionDetails |
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"}} |
DisplayName
Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Monitored resource display name. |
ExternalId
Declaration
[JsonProperty(PropertyName = "externalId")]
public string ExternalId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The external resource identifier OCID. External resource is any OCI resource which is not a Stack Monitoring service resource. Currently supports only following resource types - Container database, non-container database, pluggable database and OCI compute instance. |
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"} |
HostName
Declaration
[JsonProperty(PropertyName = "hostName")]
public string HostName { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Monitored resource host name. |
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Monitored resource identifier OCID. |
Remarks
Required
License
Declaration
[JsonProperty(PropertyName = "license")]
[JsonConverter(typeof(ResponseEnumConverter))]
public LicenseType? License { get; set; }
Property Value
| Type | Description |
|---|---|
| LicenseType? | License edition of the monitored resource. |
LifecycleState
Declaration
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public ResourceLifecycleState? LifecycleState { get; set; }
Property Value
| Type | Description |
|---|---|
| ResourceLifecycleState? | Lifecycle state of the monitored resource. |
ManagementAgentId
Declaration
[JsonProperty(PropertyName = "managementAgentId")]
public string ManagementAgentId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Management Agent Identifier OCID. |
Name
Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Monitored resource name. |
Remarks
Required
Properties
Declaration
[JsonProperty(PropertyName = "properties")]
public List<MonitoredResourceProperty> Properties { get; set; }
Property Value
| Type | Description |
|---|---|
| List<MonitoredResourceProperty> | List of monitored resource properties. |
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. |
ResourceTimeZone
Declaration
[JsonProperty(PropertyName = "resourceTimeZone")]
public string ResourceTimeZone { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Time zone in the form of tz database canonical zone ID. |
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"}} |
TenantId
Declaration
[Required(ErrorMessage = "TenantId is required.")]
[JsonProperty(PropertyName = "tenantId")]
public string TenantId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Tenancy Identifier OCID. |
Remarks
Required
TimeCreated
Declaration
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? | The date and time when the monitored resource 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 last updated, expressed in RFC 3339 timestamp format. |
Type
Declaration
[Required(ErrorMessage = "Type is required.")]
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Monitored Resource Type. |
Remarks
Required