Show / Hide Table of Contents

Class CreateMonitoredResourceDetails

The information about new monitored resource to be created. The combination of monitored resource name and type should be unique across tenancy.

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

Properties

AdditionalAliases

Declaration
[JsonProperty(PropertyName = "additionalAliases")]
public List<MonitoredResourceAliasCredential> AdditionalAliases { get; set; }
Property Value
Type Description
List<MonitoredResourceAliasCredential>

List of MonitoredResourceAliasCredentials. This property complements the existing "aliases" property by allowing user to specify more than one credential alias. If both "aliases" and "additionalAliases" are specified, union of the values is used as list of aliases applicable for this resource. If any duplicate found in the combined list of "alias" and "additionalAliases", an error will be thrown.

AdditionalCredentials

Declaration
[JsonProperty(PropertyName = "additionalCredentials")]
public List<MonitoredResourceCredential> AdditionalCredentials { get; set; }
Property Value
Type Description
List<MonitoredResourceCredential>

List of MonitoredResourceCredentials. This property complements the existing "credentials" property by allowing user to specify more than one credential. If both "credential" and "additionalCredentials" are specified, union of the values is used as list of credentials applicable for this resource. If any duplicate found in the combined list of "credentials" and "additionalCredentials", an error will be thrown.

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

External resource is any OCI resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only 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

Host name of the monitored resource.

License

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

License edition of the monitored resource. If not provided the default license type for the compartment will be used.

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.

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. Specifies the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles

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

In this article
Back to top