JmesPathDimensionValue

class oci.sch.models.JmesPathDimensionValue(**kwargs)

Bases: oci.sch.models.dimension_value_details.DimensionValueDetails

Evaluated type of dimension value.

Attributes

KIND_JMES_PATH str(object=’’) -> str
KIND_STATIC str(object=’’) -> str
kind [Required] Gets the kind of this DimensionValueDetails.
path [Required] Gets the path of this JmesPathDimensionValue.

Methods

__init__(**kwargs) Initializes a new JmesPathDimensionValue object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
KIND_JMES_PATH = 'jmesPath'
KIND_STATIC = 'static'
__init__(**kwargs)

Initializes a new JmesPathDimensionValue object with values from keyword arguments. The default value of the kind attribute of this class is jmesPath and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • kind (str) – The value to assign to the kind property of this JmesPathDimensionValue. Allowed values for this property are: “jmesPath”, “static”
  • path (str) – The value to assign to the path property of this JmesPathDimensionValue.
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

kind

[Required] Gets the kind of this DimensionValueDetails. The type of dimension value: static or evaluated.

Allowed values for this property are: “jmesPath”, “static”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The kind of this DimensionValueDetails.
Return type:str
path

[Required] Gets the path of this JmesPathDimensionValue. The location to use for deriving the dimension value (evaluated). The path must start with logContent in an acceptable notation style with supported JMESPath selectors: expression with dot and index operator (. and :func:`metric_data_details. The returned value depends on the results of evaluation. If the evaluated value is valid, then the evaluated value is returned without double quotes. (Any front or trailing double quotes are trimmed before returning the value. For example, the evaluated value “compartmentId” is returned as compartmentId.) If the evaluated value is invalid, then the returned value is SCH_EVAL_INVALID_VALUE. If the evaluated value is empty, then the returned value is SCH_EVAL_VALUE_EMPTY.

Returns:The path of this JmesPathDimensionValue.
Return type:str