AttributeMetadata¶
- class oci.apm_traces.models.AttributeMetadata(**kwargs)¶
Bases:
objectDefinition of the attribute metadata.
Attributes:
A constant which can be used with the attribute_type property of a AttributeMetadata.
A constant which can be used with the attribute_type property of a AttributeMetadata.
A constant which can be used with the attribute_unit property of a AttributeMetadata.
A constant which can be used with the attribute_unit property of a AttributeMetadata.
A constant which can be used with the attribute_unit property of a AttributeMetadata.
A constant which can be used with the attribute_unit property of a AttributeMetadata.
A constant which can be used with the attribute_unit property of a AttributeMetadata.
A constant which can be used with the attribute_unit property of a AttributeMetadata.
Gets the attribute_type of this AttributeMetadata.
Gets the attribute_unit of this AttributeMetadata.
Methods:
__init__(**kwargs)Initializes a new AttributeMetadata object with values from keyword arguments.
- ATTRIBUTE_TYPE_NUMERIC = 'NUMERIC'¶
A constant which can be used with the attribute_type property of a AttributeMetadata. This constant has a value of “NUMERIC”
- ATTRIBUTE_TYPE_STRING = 'STRING'¶
A constant which can be used with the attribute_type property of a AttributeMetadata. This constant has a value of “STRING”
- ATTRIBUTE_UNIT_BYTES = 'BYTES'¶
A constant which can be used with the attribute_unit property of a AttributeMetadata. This constant has a value of “BYTES”
- ATTRIBUTE_UNIT_COUNT = 'COUNT'¶
A constant which can be used with the attribute_unit property of a AttributeMetadata. This constant has a value of “COUNT”
- ATTRIBUTE_UNIT_DURATION_MS = 'DURATION_MS'¶
A constant which can be used with the attribute_unit property of a AttributeMetadata. This constant has a value of “DURATION_MS”
- ATTRIBUTE_UNIT_EPOCH_TIME_MS = 'EPOCH_TIME_MS'¶
A constant which can be used with the attribute_unit property of a AttributeMetadata. This constant has a value of “EPOCH_TIME_MS”
- ATTRIBUTE_UNIT_NONE = 'NONE'¶
A constant which can be used with the attribute_unit property of a AttributeMetadata. This constant has a value of “NONE”
- ATTRIBUTE_UNIT_PERCENTAGE = 'PERCENTAGE'¶
A constant which can be used with the attribute_unit property of a AttributeMetadata. This constant has a value of “PERCENTAGE”
- __init__(**kwargs)¶
Initializes a new AttributeMetadata object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
attribute_type (str) – The value to assign to the attribute_type property of this AttributeMetadata. Allowed values for this property are: “STRING”, “NUMERIC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
attribute_unit (str) – The value to assign to the attribute_unit property of this AttributeMetadata. Allowed values for this property are: “EPOCH_TIME_MS”, “BYTES”, “COUNT”, “DURATION_MS”, “PERCENTAGE”, “NONE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- property attribute_type¶
Gets the attribute_type of this AttributeMetadata. Type associated with the attribute key.
Allowed values for this property are: “STRING”, “NUMERIC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The attribute_type of this AttributeMetadata.
- Return type
str
- property attribute_unit¶
Gets the attribute_unit of this AttributeMetadata. Unit associated with the attribute key. If unit is not specified, it defaults to NONE.
Allowed values for this property are: “EPOCH_TIME_MS”, “BYTES”, “COUNT”, “DURATION_MS”, “PERCENTAGE”, “NONE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The attribute_unit of this AttributeMetadata.
- Return type
str