Class CreateLogDetails
The details to create a log object.
Inherited Members
Namespace: Oci.LoggingService.Models
Assembly: OCI.DotNetSDK.Logging.dll
Syntax
public class CreateLogDetails
Properties
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.
|
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"} |
IsEnabled
Declaration
[JsonProperty(PropertyName = "isEnabled")]
public bool? IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool? | Whether or not this resource is currently enabled. |
LogType
Declaration
[Required(ErrorMessage = "LogType is required.")]
[JsonProperty(PropertyName = "logType")]
[JsonConverter(typeof(StringEnumConverter))]
public CreateLogDetails.LogTypeEnum? LogType { get; set; }
Property Value
Type | Description |
---|---|
CreateLogDetails.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). |