AgentMetrics - グローバル
AgentMetrics スクリプトインクルードは、受信MID サーバーメトリクスを処理するメソッドを提供します。
このスクリプトインクルードは、次のテーブルを更新します。
- ECC エージェントカウンタメトリクス [ecc_agent_counter_metric]
- ECC エージェント メモリメトリクス [ecc_agent_memory_metric]
- ECC エージェント RGR メトリクス [ecc_agent_rgr_metric]
- ECC エージェント スカラー指標 [ecc_agent_scalar_metric]
サーバー スクリプトでこれらのメソッドを使用します。
AgentMetrics - AgentMetrics()
AgentMetrics のインスタンスを作成します。
| 名前 | タイプ | 説明 |
|---|---|---|
| なし |
この例では、AgentMetrics() を使用して AgentMetrics オブジェクトをインスタンス化する方法を示しています。
var amtc = new AgentMetrics();
amtc.handleMemory('memory', 'server_name', '1098888bbb9483abcd89981ffaeff');
amtc.updateMetric('ecc_agent_memory_metric', 'm_values', 'memory', '1098888bbb9483abcd89981ffaeff');
AgentMetrics - handleCounter(文字列 metric, 文字列 name, 文字列 midId)
エージェントからのカウンター測定基準を、ECC エージェント カウンター測定基準テーブル (ecc_agent_counter_metric) の更新に使用できるアレイに格納することによって処理します。
| 名前 | タイプ | 説明 |
|---|---|---|
| metric | 文字列 | エージェントからのカウンター オブジェクト |
| name | 文字列 | デバイス名 |
| midID | 文字列 | MID サーバーの sys_id |
| タイプ | 説明 |
|---|---|
| なし |
var amtc = new AgentMetrics();
amtc.handleCounter('count', 'server_name', '1098888bbb9483abcd89981ffaeff');
AgentMetrics - handleMemory(文字列 metric, 文字列 name, 文字列 midId)
指定されたエージェントのメモリー測定基準を更新します。
| 名前 | タイプ | 説明 |
|---|---|---|
| metric | 文字列 | エージェントからのメモリー オブジェクト |
| name | 文字列 | デバイス名 |
| midID | 文字列 | MID サーバーの sys_id |
| タイプ | 説明 |
|---|---|
| なし |
var amtc = new AgentMetrics();
amtc.handleMemory('mem_obj', 'server_name', '1098888bbb9483abcd89981ffaeff');
AgentMetrics - handleRGR(文字列 metric, 文字列 name, 文字列 midId)
リモート Glide レコードからのメトリック情報をアレイに格納することによって処理します。
| 名前 | タイプ | 説明 |
|---|---|---|
| metric | 文字列 | エージェントからのリモート オブジェクト |
| name | 文字列 | デバイス名 |
| midID | 文字列 | MID サーバーの sys_id |
| タイプ | 説明 |
|---|---|
| なし |
var amtc = new AgentMetrics();
amtc.handleRGR('remote_obj', 'server_name', '1098888bbb9483abcd89981ffaeff');
AgentMetrics - handleScalar(文字列 metric, 文字列 name, 文字列 midId)
エージェントのスカラ値をアレイに格納して処理します。
| 名前 | タイプ | 説明 |
|---|---|---|
| metric | 文字列 | エージェントからのカウンター オブジェクト |
| name | 文字列 | デバイス名 |
| midID | 文字列 | MID サーバーの sys_id |
| タイプ | 説明 |
|---|---|
| なし |
var amtc = new AgentMetrics();
amtc.handleScalar('scalar', 'server_name', '1098888bbb9483abcd89981ffaeff');
AgentMetrics - updateMetric(文字列 tableName, 文字列 values, 文字列 metric, 文字列 midID)
指定した測定基準テーブルを新しい測定基準情報で更新します。
| 名前 | タイプ | 説明 |
|---|---|---|
| tableName | 文字列 | 更新するメトリック表 |
| 値 | 文字列 | テーブルに追加する値を含むオブジェクト |
| metric | 文字列 | 表に追加する測定基準タイプ |
| midID | 文字列 | MID サーバーの sys_id |
| タイプ | 説明 |
|---|---|
| なし |
var amtc = new AgentMetrics();
amtc.handleMemory('memory', 'server_name', '1098888bbb9483abcd89981ffaeff');
amtc.updateMetric('ecc_agent_memory_metric', 'm_values', 'memory', '1098888bbb9483abcd89981ffaeff');