Metrics Get Edge Segment Metrics

Metrics Get Edge Segment Metrics

Gets flow metric summaries for the specified time interval by segment id. On success, this method returns an array of flow data where each entry corresponds to a segment id traffic that has traversed the specified Edge. In the request body, the id and edgeId property names are interchangeable. The enterpriseId property is required when this method is invoked in the operator context.

Privileges required:

READ EDGE

VIEW_FLOW_STATS undefined

Request
URI
POST
https://{api_host}/portal/rest/metrics/getEdgeSegmentMetrics
COPY
Request Body

Show optional properties

{
    "interval": {
        "start": "string"
    }
}
{
    "id": 0,
    "edgeId": 0,
    "enterpriseId": 0,
    "interval": {
        "end": "string",
        "start": "string"
    },
    "metrics": "basic_metrics Object",
    "sort": "basic_metric Object",
    "limit": 0,
    "segments": [
        0
    ]
}
integer
id
Optional

id

integer
edgeId
Optional

edgeId

integer
enterpriseId
Optional

enterpriseId

interval
Required

interval

metrics
Optional

A list of metrics to report. When omitted, this method returns all available metrics.

sort
Optional

sort

Possible values are : packetsRx, packetsTx, totalPackets, bytesRx, bytesTx, totalBytes,
integer
limit
Optional

limit

array of integer
segments
Optional

segments

Responses
200

Request was successfully processed

Returns Array of metrics_get_edge_segment_metrics_result_item of type(s) application/json
[
    "metrics_get_edge_segment_metrics_result_item Object"
]

400
Returns generic_400 of type(s) application/json
Operation doesn't return any data structure

500
Returns generic_500 of type(s) application/json
Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"interval:"object"}' https://{api_host}/portal/rest/metrics/getEdgeSegmentMetrics