Class LogOptions
Specifies the options for configuring the cluster integrated logging and metrics.
Namespace: Neon.Kube.ClusterDef
Assembly: Neon.Kube.dll
Syntax
public class LogOptions
Properties
LogRetentionDays
Log retention period. Logs beyond this number of days will be purged by the ClusterManager
Declaration
[JsonProperty(PropertyName = "LogRetentionDays", Required = Required.Default)]
[YamlMember(Alias = "logRetentionDays", ApplyNamingConventions = false)]
public int LogRetentionDays { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
Validate(ClusterDefinition)
Validates the options and also ensures that all null
properties are
initialized to their default values.
Declaration
public void Validate(ClusterDefinition clusterDefinition)
Parameters
Type | Name | Description |
---|---|---|
ClusterDefinition | clusterDefinition | The cluster definition. |
Exceptions
Type | Condition |
---|---|
ClusterDefinitionException | Thrown if the definition is not valid. |