Class VariableDefinition
Defines a variable used in a macro or the initization section of a query.
Inherited Members
Namespace: Oci.LoganalyticsService.Models
Assembly: OCI.DotNetSDK.Loganalytics.dll
Syntax
public class VariableDefinition
Properties
DefaultValue
Declaration
[JsonProperty(PropertyName = "defaultValue")]
public string DefaultValue { get; set; }
Property Value
Type | Description |
---|---|
string | Default value of the variable is not already set. |
Description
Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string | Descripion of the variable to show the user. |
Name
Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | Name of the variable preceded by a $. |
Remarks
Required
Properties
Declaration
[JsonProperty(PropertyName = "properties")]
public List<PropertyDefinition> Properties { get; set; }
Property Value
Type | Description |
---|---|
List<PropertyDefinition> | Optional list of properties for the variable. |
Type
Declaration
[JsonProperty(PropertyName = "type")]
[JsonConverter(typeof(ResponseEnumConverter))]
public VariableDefinition.TypeEnum? Type { get; set; }
Property Value
Type | Description |
---|---|
VariableDefinition.TypeEnum? | Type of the variable to show the user. |