Group
Group
¶
Bases: GroupType
Source code in lib/python/src/aria/ops/definition/group.py
__init__(key, label=None, instanced=False, instance_required=True)
¶
Create a new group that can hold attributes and subgroups.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key |
str
|
The key for the group. |
required |
label |
Optional[str]
|
Label that is displayed in the VMware Aria Operations UI. Defaults to the key. |
None
|
instanced |
bool
|
If True, this group can be 'instanced' with a value, so that its subgroups and attributes can appear multiple times, once for each instance value. For example, a group containing metrics for a network interface might be instanced for each discovered interface on the parent object. |
False
|
instance_required |
bool
|
If true, then this group must be created with an instance. Otherwise, it can be created both with and without an instance. Creating an instanced group without an instance can be done to provide a location for aggregate metrics across all instances, for example. This does nothing if 'instanced' is False. |
True
|
Source code in lib/python/src/aria/ops/definition/group.py
GroupType
¶
Bases: ABC
Source code in lib/python/src/aria/ops/definition/group.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 |
|
add_attribute(attribute)
¶
Adds an attribute to this group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
attribute |
Attribute
|
An attribute (metric or property definition). |
required |
Source code in lib/python/src/aria/ops/definition/group.py
add_attributes(attributes)
¶
Adds a list of attributes to this group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
attributes |
list[Attribute]
|
A list of attributes (metric or property definitions). |
required |
Source code in lib/python/src/aria/ops/definition/group.py
add_group(group)
¶
Adds a group as a subgroup of this group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
group |
Group
|
A group. |
required |
Source code in lib/python/src/aria/ops/definition/group.py
add_groups(groups)
¶
Adds a list of groups as subgroups of this group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
groups |
list[Group]
|
A list of groups. |
required |
define_group(key, label=None)
¶
Create a new group that can hold attributes and subgroups.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key |
str
|
The key for the group. |
required |
label |
Optional[str]
|
Label that is displayed in the VMware Aria Operations UI. Defaults to the key. |
None
|
Returns:
Type | Description |
---|---|
Group
|
The created group. |
Source code in lib/python/src/aria/ops/definition/group.py
define_instanced_group(key, label=None, instance_required=True)
¶
Create a new group that can hold attributes and subgroups. This group can be 'instanced', with a value, so that its subgroups and attributes can appear multiple times, once for each instance value. For example, a group containing metrics for a network interface might be instanced for each discovered interface on the parent object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key |
str
|
The key for the group. |
required |
label |
Optional[str]
|
Label that is displayed in the VMware Aria Operations UI. Defaults to the key. |
None
|
instance_required |
bool
|
If true, then this group must be created with an instance. Otherwise, it can be created both with and without an instance. Creating an instanced group without an instance can be done to provide a location for aggregate metrics across all instances, for example. |
True
|
Returns:
Type | Description |
---|---|
Group
|
The created group. |
Source code in lib/python/src/aria/ops/definition/group.py
define_metric(key, label=None, unit=None, is_rate=False, is_discrete=False, is_kpi=False, is_impact=False, is_key_attribute=False)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key |
str
|
Used to identify the parameter. |
required |
label |
Optional[str]
|
Label that is displayed in the VMware Aria Operations UI. Defaults to the key. |
None
|
unit |
Optional[Unit]
|
Specifies what unit this metric is returned in. This allows the UI to display the units in a consistent manner, and perform conversions when appropriate. |
None
|
is_rate |
bool
|
Declares this attribute as a rate (e.g., kilobytes per second). If a unit is specified, this will be set automatically. Otherwise, defaults to False. |
False
|
is_discrete |
bool
|
Declares that this attribute's range of values is discrete (integer) rather than continuous (floating point) |
False
|
is_kpi |
bool
|
If set, threshold breaches for this metric will be used in the calculation of the object's 'Self - Health Score' metric, which can affect the 'Anomalies' Badge. |
False
|
is_impact |
bool
|
If set, this attribute will never be the 'root cause' of an issue. For example, it could be a proxy to a root cause, but not the root cause itself. |
False
|
is_key_attribute |
bool
|
True if the attribute should be shown in some object summary widgets in the UI. |
False
|
Source code in lib/python/src/aria/ops/definition/group.py
define_numeric_property(key, label=None, unit=None, is_rate=False, is_discrete=False, is_kpi=False, is_impact=False, is_key_attribute=False)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key |
str
|
Used to identify the parameter. |
required |
label |
Optional[str]
|
Label that is displayed in the VMware Aria Operations UI. Defaults to the key. |
None
|
unit |
Optional[Unit]
|
Specifies what unit this metric is returned in. This allows the UI to display the units in a consistent manner, and perform conversions when appropriate. |
None
|
is_rate |
bool
|
Declares this attribute as a rate (e.g., kilobytes per second). If a unit is specified, this will be set automatically. Otherwise, defaults to False. |
False
|
is_discrete |
bool
|
Declares that this attribute's range of values is discrete (integer) rather than continuous (floating point). Defaults to False, unless 'is_string' is set, in which case it will always be set to True. |
False
|
is_kpi |
bool
|
If set, threshold breaches for this metric will be used in the calculation of the object's 'Self - Health Score' metric, which can affect the 'Anomalies' Badge. |
False
|
is_impact |
bool
|
If set, this attribute will never be the 'root cause' of an issue. For example, it could be a proxy to a root cause, but not the root cause itself. |
False
|
is_key_attribute |
bool
|
True if the attribute should be shown in some object summary widgets in the UI. |
False
|
Source code in lib/python/src/aria/ops/definition/group.py
define_string_property(key, label=None, unit=None, is_rate=False, is_discrete=False, is_kpi=False, is_impact=False, is_key_attribute=False)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key |
str
|
Used to identify the parameter. |
required |
label |
Optional[str]
|
Label that is displayed in the VMware Aria Operations UI. Defaults to the key. |
None
|
unit |
Optional[Unit]
|
Specifies what unit this metric is returned in. This allows the UI to display the units in a consistent manner, and perform conversions when appropriate. |
None
|
is_rate |
bool
|
Declares this attribute as a rate (e.g., kilobytes per second). If a unit is specified, this will be set automatically. Otherwise, defaults to False. |
False
|
is_discrete |
bool
|
Declares that this attribute's range of values is discrete (integer) rather than continuous (floating point). Defaults to False, unless 'is_string' is set, in which case it will always be set to True. |
False
|
is_kpi |
bool
|
If set, threshold breaches for this metric will be used in the calculation of the object's 'Self - Health Score' metric, which can affect the 'Anomalies' Badge. |
False
|
is_impact |
bool
|
If set, this attribute will never be the 'root cause' of an issue. For example, it could be a proxy to a root cause, but not the root cause itself. |
False
|
is_key_attribute |
bool
|
True if the attribute should be shown in some object summary widgets in the UI. |
False
|