JmesPathDimensionValue

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

Bases: DimensionValueDetails

Evaluated type of dimension value.

Attributes:

KIND_JMES_PATH

A constant which can be used with the kind property of a DimensionValueDetails.

KIND_STATIC

A constant which can be used with the kind property of a DimensionValueDetails.

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'

A constant which can be used with the kind property of a DimensionValueDetails. This constant has a value of “jmesPath”

KIND_STATIC = 'static'

A constant which can be used with the kind property of a DimensionValueDetails. This constant has a value of “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.

property 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

property 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