Show / Hide Table of Contents

Class DataSource

A representation of a source configuration setup in the Management Agent.

Inheritance
object
DataSource
KubernetesClusterDataSource
PrometheusEmitterDataSource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.ManagementagentService.Models
Assembly: OCI.DotNetSDK.Managementagent.dll
Syntax
[JsonConverter(typeof(DataSourceModelConverter))]
public class DataSource

Properties

CompartmentId

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

Compartment owning this DataSource.

Remarks

Required

Key

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

Identifier for DataSource. This represents the type and name for the data source associated with the Management Agent.

Remarks

Required

Name

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

Unique name of the DataSource.

Remarks

Required

State

Declaration
[Required(ErrorMessage = "State is required.")]
[JsonProperty(PropertyName = "state")]
[JsonConverter(typeof(ResponseEnumConverter))]
public LifecycleStates? State { get; set; }
Property Value
Type Description
LifecycleStates?

State of the DataSource.

Remarks

Required

TimeCreated

Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

The time the DataSource was created. An RFC3339 formatted datetime string

Remarks

Required

TimeUpdated

Declaration
[Required(ErrorMessage = "TimeUpdated is required.")]
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type Description
DateTime?

The time the DataSource data was last received. An RFC3339 formatted datetime string

Remarks

Required

In this article
Back to top