フロー統計

フロー統計では、各 Harvester の負荷全体を判別します。フロー統計を使用すると、再バランスが必要かどうかにかかわらず、新しいフローの送信先を決定できます。過去 1 日、過去 1 週間、または過去 30 日の Harvester のフロー レートを参照できます。
nfa1000
フロー統計では、各 Harvester の負荷全体を判別します。フロー統計を使用すると、再バランスが必要かどうかにかかわらず、新しいフローの送信先を決定できます。過去 1 日、過去 1 週間、または過去 30 日の Harvester のフロー レートを参照できます。
フロー統計では、以下のオプションを使用できます。
すべてのフロー統計の表示
リソース
URI
http://<
nfa odata host>:<nfa odata port
>/odata/api/flowStats
メソッド
GET
サンプル リクエスト
http://127.0.0.1:8981/odata/api/flowStats
サンプル レスポンス
{
"@odata.context": "$metadata#flowStats",
"value": [
{
"RouterReboots": 0,
"DroppedPackets": 0,
"MapFailures": 0,
"HeaderFailures": 0,
"HarvesterId": 2,
"FlowRate": 3222,
"Created": "2018-11-15 00:02:35.0",
"PointTime": 1542240155,
"DroppedFlows": 0,
"NoFlowsFound": 0
},
{
"RouterReboots": 0,
"DroppedPackets": 0,
"MapFailures": 0,
"HeaderFailures": 0,
"HarvesterId": 2,
"FlowRate": 3222,
"Created": "2018-11-15 00:07:35.0",
"PointTime": 1542240455,
"DroppedFlows": 0,
"NoFlowsFound": 0
}
]
}
特定の Harvester に関連付けられたフロー統計の表示
リソース
URI
http://<
nfa odata host>:<nfa odata port
>/odata/api/harvesters(HarvesterId=<
Harvester Id Value
>)?$expand=flowStats($count=true)
メソッド
GET
サンプル リクエスト
http://127.0.0.1:8981/odata/api/harvesters(HarvesterId=2)?$expand=flowStats($count=true)
サンプル レスポンス
{
"@odata.context": "$metadata#harvesters(flowStats())",
"HarvesterId": 2,
"HarvesterAddress": "127.0.0.1",
"Description": "Single box configuration Modified",
"ManagementServerPort": 8080,
"FlowEnabledLastModified": 0,
"FlowEnabledLastDeployed": 0,
"LastPushCheckpoint": 1545213322,
"LastPullCheckpoint": 1545213313,
"ApplicationMappingLastDeployed": 0,
"PortDefinitionsLastDeployed": 0,
"ReservedSeatingLastDeployed": 0,
"TrapDefinitionsLastDeployed": 1541748300,
"DomainId": 3,
"DomainName": "Domain A",
"DomainDescription": "Domain A for FellsCargo",
"TenantId": 9,
"[email protected]": 10,
"flowStats": [
{
"HarvesterId": 2,
"Created": "2018-11-15 00:02:35.0",
"PointTime": 1542240155,
"FlowRate": 3222,
"DroppedFlows": 0,
"DroppedPackets": 0,
"MapFailures": 0,
"NoFlowsFound": 0,
"HeaderFailures": 0,
"RouterReboots": 0
},
{
"HarvesterId": 2,
"Created": "2018-11-15 00:07:35.0",
"PointTime": 1542240455,
"FlowRate": 3222,
"DroppedFlows": 0,
"DroppedPackets": 0,
"MapFailures": 0,
"NoFlowsFound": 0,
"HeaderFailures": 0,
"RouterReboots": 0
},
{
"HarvesterId": 2,
"Created": "2018-11-15 00:12:35.0",
"PointTime": 1542240755,
"FlowRate": 3222,
"DroppedFlows": 0,
"DroppedPackets": 0,
"MapFailures": 0,
"NoFlowsFound": 0,
"HeaderFailures": 0,
"RouterReboots": 0
},
{
"HarvesterId": 2,
"Created": "2018-11-15 00:17:35.0",
"PointTime": 1542241055,
"FlowRate": 3222,
"DroppedFlows": 0,
"DroppedPackets": 0,
"MapFailures": 0,
"NoFlowsFound": 0,
"HeaderFailures": 0,
"RouterReboots": 0
},
{
"HarvesterId": 2,
"Created": "2018-11-15 00:22:35.0",
"PointTime": 1542241355,
"FlowRate": 3222,
"DroppedFlows": 0,
"DroppedPackets": 0,
"MapFailures": 0,
"NoFlowsFound": 0,
"HeaderFailures": 0,
"RouterReboots": 0
},
{
"HarvesterId": 2,
"Created": "2018-11-15 00:27:35.0",
"PointTime": 1542241655,
"FlowRate": 3222,
"DroppedFlows": 0,
"DroppedPackets": 0,
"MapFailures": 0,
"NoFlowsFound": 0,
"HeaderFailures": 0,
"RouterReboots": 0
}
]
}
すべての Harvester に関連付けられたフロー統計の表示
リソース
URI
http://
<nfa odata host>:<nfa odata port>/
odata/api/
harvesters?$expand=flowStats($count=true)
メソッド
GET
サンプル リクエスト
http://127.0.0.1:8981/odata/api/
harvesters?$expand=flowStats($count=true)
サンプル レスポンス
{
"@odata.context": "$metadata#harvesters(flowStats())",
"value": [
{
"HarvesterId": 2,
"LastPullCheckpoint": 1545214484,
"PortDefinitionsLastDeployed": 0,
"HarvesterAddress": "127.0.0.1",
"DomainId": 3,
"FlowEnabledLastModified": 0,
"ManagementServerPort": 8080,
"DomainName": "Domain A",
"DomainDescription": "Domain A for FellsCargo",
"FlowEnabledLastDeployed": 0,
"LastPushCheckpoint": 1545214483,
"ApplicationMappingLastDeployed": 0,
"ReservedSeatingLastDeployed": 0,
"TrapDefinitionsLastDeployed": 1541748300,
"TenantId": 9,
"Description": "Single box configuration Modified",
"[email protected]": 10,
"flowStats": [
{
"RouterReboots": 0,
"DroppedPackets": 0,
"MapFailures": 0,
"HeaderFailures": 0,
"HarvesterId": 2,
"FlowRate": 3222,
"Created": "2018-11-15 00:02:35.0",
"PointTime": 1542240155,
"DroppedFlows": 0,
"NoFlowsFound": 0
},
{
"RouterReboots": 0,
"DroppedPackets": 0,
"MapFailures": 0,
"HeaderFailures": 0,
"HarvesterId": 2,
"FlowRate": 3222,
"Created": "2018-11-15 00:07:35.0",
"PointTime": 1542240455,
"DroppedFlows": 0,
"NoFlowsFound": 0
},
{
"RouterReboots": 0,
"DroppedPackets": 0,
"MapFailures": 0,
"HeaderFailures": 0,
"HarvesterId": 2,
"FlowRate": 3222,
"Created": "2018-11-15 00:12:35.0",
"PointTime": 1542240755,
"DroppedFlows": 0,
"NoFlowsFound": 0
},
{
"RouterReboots": 0,
"DroppedPackets": 0,
"MapFailures": 0,
"HeaderFailures": 0,
"HarvesterId": 2,
"FlowRate": 3222,
"Created": "2018-11-15 00:17:35.0",
"PointTime": 1542241055,
"DroppedFlows": 0,
"NoFlowsFound": 0
}
]
},
{
"HarvesterId": 5,
"LastPullCheckpoint": 0,
"PortDefinitionsLastDeployed": 0,
"HarvesterAddress": "127.0.0.1",
"DomainId": 1,
"FlowEnabledLastModified": 0,
"ManagementServerPort": 8080,
"DomainName": "Default Domain",
"DomainDescription": "The default domain for devices, interfaces, interface addresses and networks.",
"FlowEnabledLastDeployed": 0,
"LastPushCheckpoint": 0,
"ApplicationMappingLastDeployed": 0,
"ReservedSeatingLastDeployed": 0,
"TrapDefinitionsLastDeployed": 0,
"TenantId": 8,
"Description": "Test Harvesters2",
"[email protected]": 0,
"flowStats": []
}
]
}
特定の Harvester に関連付けられているフロー統計および Harvester ヘルスの表示
リソース
URI
http://<
nfa odata host>:<nfa odata port>
/odata/api/harvesters(HarvesterId=<
Harvester Id Value
>)?$expand=flowStats($count=true),harvesterHealth
メソッド
GET
サンプル リクエスト
http://127.0.0.1:8981/odata/api/harvesters(HarvesterId=2)?$expand=flowStats($count=true),harvesterHealth
サンプル レスポンス
{
"@odata.context": "$metadata#harvesters(harvesterHealth(),flowStats())",
"HarvesterId": 2,
"HarvesterAddress": "127.0.0.1",
"Description": "Single box configuration Modified",
"ManagementServerPort": 8080,
"FlowEnabledLastModified": 0,
"FlowEnabledLastDeployed": 0,
"LastPushCheckpoint": 1545213383,
"LastPullCheckpoint": 1545213375,
"ApplicationMappingLastDeployed": 0,
"PortDefinitionsLastDeployed": 0,
"ReservedSeatingLastDeployed": 0,
"TrapDefinitionsLastDeployed": 1541748300,
"DomainId": 3,
"DomainName": "Domain A",
"DomainDescription": "Domain A for FellsCargo",
"TenantId": 9,
"harvesterHealth": [
{
"HarvesterId": 2,
"HarvesterAddress": "127.0.0.1",
"SNMPServiceStatus": "Failed",
"DBTables": 37,
"UpdateTime": 1545213117,
"LastHarvester": 0,
"LastBilling": 0,
"DBRepairs": 0,
"DBFailures": 0,
"PollerDBTables": 37,
"PollerDBRepairs": 0,
"PollerDBFailures": 0,
"DataRetentionDBTables": 3,
"DataRetentionDBRepairs": 0,
"DataRetentionDBFailures": 0,
"HarvestStatus": "Unknown",
"WebServerStatus": "Unknown",
"CollectorPollerWSStatus": "Unknown",
"ProxyServiceStatus": "Unknown",
"DataRetentionServiceStatus": "Unknown",
"PollerServiceStatus": "Unknown",
"DBConnectStatus": "Successful",
"PollerDBConnectStatus": "Successful",
"DataRetentionDBConnectStatus": "Successful",
"MemoryUtilization": "0.0"
}
],
"[email protected]": 10,
"flowStats": [
{
"HarvesterId": 2,
"Created": "2018-11-15 00:02:35.0",
"PointTime": 1542240155,
"FlowRate": 3222,
"DroppedFlows": 0,
"DroppedPackets": 0,
"MapFailures": 0,
"NoFlowsFound": 0,
"HeaderFailures": 0,
"RouterReboots": 0
},
{
"HarvesterId": 2,
"Created": "2018-11-15 00:07:35.0",
"PointTime": 1542240455,
"FlowRate": 3222,
"DroppedFlows": 0,
"DroppedPackets": 0,
"MapFailures": 0,
"NoFlowsFound": 0,
"HeaderFailures": 0,
"RouterReboots": 0
},
{
"HarvesterId": 2,
"Created": "2018-11-15 00:12:35.0",
"PointTime": 1542240755,
"FlowRate": 3222,
"DroppedFlows": 0,
"DroppedPackets": 0,
"MapFailures": 0,
"NoFlowsFound": 0,
"HeaderFailures": 0,
"RouterReboots": 0
}
]
}