Relationship Metrics

Relationship Metrics

This API is used to show the traffic map between the nodes for given link or cable .This api fetches the metrics CurrentUtilization,InputPacketErrorPct for both the ends for given link,cable.Input for this API is id which is combination of A-End <--> Z-End, where A-End,Z-End are entity names on which metrics are getting collected.

Request
URI
POST
https://{api_host}/tcsa/api/metrics-management/v1/relationship-metrics
COPY
Request Body
RelationshipMetricRequest of type(s) application/json
Optional

Show optional properties

{
    "relations": [
        {
            "id": "LINK-AggregatePort-10.107.119.10/5001-LACP<->IF-10.107.117.2/2"
        }
    ],
    "metric_name": "CurrentUtilization"
}
{
    "metric_name": "string",
    "relations": [
        {
            "id": "string"
        }
    ]
}
string
metric_name
Required

Catalog metric-name to be retrived

array of object
relations
Required

Link id to which metrics to be fetched

Authentication
This operation uses the following authentication methods.
Responses
200

Ok

Returns RelationshipMetricResponse of type(s) application/json
"RelationshipMetricResponse Object"

401

User authentication failed

Operation doesn't return any data structure

403

Access to the requested resource/operation is forbidden

Operation doesn't return any data structure

404

Cannot find requested resource

Operation doesn't return any data structure

500

Internal server error

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"metric_name:"string","relations":["object"]}' https://{api_host}/tcsa/api/metrics-management/v1/relationship-metrics