AgentMetrics - Global
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- API reference
The AgentMetrics script include provides methods to process inbound MID Server metrics.
- ECC Agent Counter Metric [ecc_agent_counter_metric]
- ECC Agent Memory Metric [ecc_agent_memory_metric]
- ECC Agent RGR Metric [ecc_agent_rgr_metric]
- ECC Agent Scalar Metric [ecc_agent_scalar_metric]
Use these methods in server scripts.
AgentMetrics - AgentMetrics()
Creates an instance of AgentMetrics.
Name | Type | Description |
---|---|---|
None |
Example
This example shows how to use AgentMetrics() to instantiate an AgentMetrics object.
AgentMetrics - handleCounter(String metric, String name, String midId)
Handles counter metrics from the agent by putting them into an array that can be used to update the ECC Agent Counter Metric table (ecc_agent_counter_metric).
Name | Type | Description |
---|---|---|
metric | String | The counter object from the agent |
name | String | The device name |
midId | String | The MID server sys_id |
Type | Description |
---|---|
void |
Example
AgentMetrics - handleMemory(String metric, String name, String midId)
Updates the memory metrics for the given agent.
Name | Type | Description |
---|---|---|
metric | String | The memory object from the agent |
name | String | The device name |
midId | String | The MID server sys_id |
Type | Description |
---|---|
void |
Example
AgentMetrics - handleRGR(String metric, String name, String midId)
Handles metric information from a remote glide record by putting it into an array.
Name | Type | Description |
---|---|---|
metric | String | The remote object from the agent |
name | String | The device name |
midId | String | The MID server sys_id |
Type | Description |
---|---|
void |
Example
AgentMetrics - handleScalar(String metric, String name, String midId)
Handles scalar values from the agent by putting them into an array.
Name | Type | Description |
---|---|---|
metric | String | The counter object from the agent |
name | String | The device name |
midId | String | The MID server sys_id |
Type | Description |
---|---|
void |
Example
AgentMetrics - updateMetric(String tableName, String values, String metric, String midID)
Updates the specified metrics table with the new metric information.
Type | Description |
---|---|
void |
Example
On this page
- AgentMetrics - AgentMetrics()
- AgentMetrics - handleCounter(String metric, String name, String midId)
- AgentMetrics - handleMemory(String metric, String name, String midId)
- AgentMetrics - handleRGR(String metric, String name, String midId)
- AgentMetrics - handleScalar(String metric, String name, String midId)
- AgentMetrics - updateMetric(String tableName, String values, String metric, String
midID)