This configuration page is used to configure the expression used to calculate the metric of the SDNS service based on the collected SNMP OID data and weights of the SNMP OIDs.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | exp_name | string | |
| default | oid_name_1 | asso | |
| default | oid_weight_1 | uint32 | |
| default | oid_name_2 | asso | |
| default | oid_weight_2 | uint32 | |
| default | oid_name_3 | asso | |
| default | oid_weight_3 | uint32 |
{
"SNMPExpression": {
"meta": {
"abstract": false,
"verbose_name": SDNS SNMP Expression,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| exp_name | string | |
| oid_name_1 | asso | |
| oid_weight_1 | uint32 | |
| oid_name_2 | asso | |
| oid_weight_2 | uint32 | |
| oid_name_3 | asso | |
| oid_weight_3 | uint32 |
{
"SNMPExpression": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"SNMPExpression": [
{
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
},
...
]
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| field_group_name | URI | (optional) Target field group name to query. Available names are: default, target_group, Notice: There could only be one field_group_name or field_name in the URL. And if both field_group_name and field_name are not specified, will try to query default field_group data. |
| field_name | URI | (optional) Target field name to query. Available names are: exp_name, oid_name_1, oid_weight_1, oid_name_2, oid_weight_2, oid_name_3, oid_weight_3, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | exp_name | string | |
| default | oid_name_1 | asso | |
| default | oid_weight_1 | uint32 | |
| default | oid_name_2 | asso | |
| default | oid_weight_2 | uint32 | |
| default | oid_name_3 | asso | |
| default | oid_weight_3 | uint32 |
{
"SNMPExpression": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"SNMPExpression": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"SNMPExpression": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"SNMPExpression": {
"instance_id":<instance_id>,
"oid_name_1":<value>
}
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"SNMPExpression": {
"instance_id":<instance_id>,
"oid_name_2":<value>
}
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"SNMPExpression": {
"instance_id":<instance_id>,
"oid_name_3":<value>
}
}