Data
Metric
¶
Class representing a Metric Data Point.
Metrics are numeric values that represent data at a particular point in time. These are stored as time series data.
Examples:
CPU Utilization Disk Capacity Current User Session Count Cumulative Data Received
Source code in lib/python/src/aria/ops/data.py
__init__(key, value, timestamp=None)
¶
Creates a Metric.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key |
str
|
A string representing the type of metric. |
required |
value |
float
|
The value of the Metric. |
required |
timestamp |
Optional[int]
|
Time in milliseconds since the Epoch when this metric value was recorded. Defaults to the current time. |
None
|
Source code in lib/python/src/aria/ops/data.py
get_json()
¶
Get a JSON representation of this Metric.
Returns a JSON representation of this Metric in the format required by vROps.
Returns:
Name | Type | Description |
---|---|---|
dict |
dict
|
A JSON representation of this Metric. |
Source code in lib/python/src/aria/ops/data.py
Property
¶
Class representing a Property value.
A Property is a value, usually a string, that will change infrequently or not at all. Only the current value is important.
Examples:
IP Address Software Version CPU Core Count
Source code in lib/python/src/aria/ops/data.py
__init__(key, value, timestamp=None)
¶
Creates a Property.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key |
str
|
A string representing the type of property. |
required |
value |
Union[float, str]
|
The value of the property. Can be str or float. |
required |
timestamp |
Optional[int]
|
Time in milliseconds since the Epoch when this property value was recorded. Defaults to the current time. |
None
|
Source code in lib/python/src/aria/ops/data.py
get_json()
¶
Get a JSON representation of this Property.
Returns a JSON representation of this Property in the format required by vROps.
Returns:
Name | Type | Description |
---|---|---|
dict |
dict
|
A JSON representation of this Property. |