VariableDefinition¶
-
class
oci.log_analytics.models.
VariableDefinition
(**kwargs)¶ Bases:
object
Defines a variable used in a macro or the initization section of a query.
Attributes
TYPE_NUMBER
A constant which can be used with the type property of a VariableDefinition. TYPE_STRING
A constant which can be used with the type property of a VariableDefinition. TYPE_TIMESTAMP
A constant which can be used with the type property of a VariableDefinition. default_value
Gets the default_value of this VariableDefinition. description
Gets the description of this VariableDefinition. name
[Required] Gets the name of this VariableDefinition. properties
Gets the properties of this VariableDefinition. type
Gets the type of this VariableDefinition. Methods
__init__
(**kwargs)Initializes a new VariableDefinition object with values from keyword arguments. -
TYPE_NUMBER
= 'NUMBER'¶ A constant which can be used with the type property of a VariableDefinition. This constant has a value of “NUMBER”
-
TYPE_STRING
= 'STRING'¶ A constant which can be used with the type property of a VariableDefinition. This constant has a value of “STRING”
-
TYPE_TIMESTAMP
= 'TIMESTAMP'¶ A constant which can be used with the type property of a VariableDefinition. This constant has a value of “TIMESTAMP”
-
__init__
(**kwargs)¶ Initializes a new VariableDefinition object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - name (str) – The value to assign to the name property of this VariableDefinition.
- description (str) – The value to assign to the description property of this VariableDefinition.
- type (str) – The value to assign to the type property of this VariableDefinition. Allowed values for this property are: “NUMBER”, “STRING”, “TIMESTAMP”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- default_value (str) – The value to assign to the default_value property of this VariableDefinition.
- properties (list[oci.log_analytics.models.PropertyDefinition]) – The value to assign to the properties property of this VariableDefinition.
-
default_value
¶ Gets the default_value of this VariableDefinition. Default value of the variable is not already set.
Returns: The default_value of this VariableDefinition. Return type: str
-
description
¶ Gets the description of this VariableDefinition. Descripion of the variable to show the user.
Returns: The description of this VariableDefinition. Return type: str
-
name
¶ [Required] Gets the name of this VariableDefinition. Name of the variable preceded by a $.
Returns: The name of this VariableDefinition. Return type: str
-
properties
¶ Gets the properties of this VariableDefinition. Optional list of properties for the variable.
Returns: The properties of this VariableDefinition. Return type: list[oci.log_analytics.models.PropertyDefinition]
-
type
¶ Gets the type of this VariableDefinition. Type of the variable to show the user.
Allowed values for this property are: “NUMBER”, “STRING”, “TIMESTAMP”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The type of this VariableDefinition. Return type: str
-