Show / Hide Table of Contents

Class Log

Represents a log object.

Inheritance
object
Log
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.LoggingService.Models
Assembly: OCI.DotNetSDK.Logging.dll
Syntax
public class Log

Properties

CompartmentId

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

The OCID of the compartment that the resource belongs to.

Configuration

Declaration
[JsonProperty(PropertyName = "configuration")]
public Configuration Configuration { get; set; }
Property Value
Type Description
Configuration

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. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}

DisplayName

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

The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.

Remarks

Required

FreeformTags

Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type Description
Dictionary<string, string>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

Id

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

The OCID of the resource.

Remarks

Required

IsEnabled

Declaration
[JsonProperty(PropertyName = "isEnabled")]
public bool? IsEnabled { get; set; }
Property Value
Type Description
bool?

Whether or not this resource is currently enabled.

LifecycleState

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

The pipeline state.

Remarks

Required

LogGroupId

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

Log group OCID.

Remarks

Required

LogType

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

The logType that the log object is for, whether custom or service.

Remarks

Required

RetentionDuration

Declaration
[JsonProperty(PropertyName = "retentionDuration")]
public int? RetentionDuration { get; set; }
Property Value
Type Description
int?

Log retention duration in 30-day increments (30, 60, 90 and so on until 180).

TenancyId

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

The OCID of the tenancy.

TimeCreated

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

Time the resource was created.

TimeLastModified

Declaration
[JsonProperty(PropertyName = "timeLastModified")]
public DateTime? TimeLastModified { get; set; }
Property Value
Type Description
DateTime?

Time the resource was last modified.

In this article
Back to top