ves-io-schema-topology-CustomDataAPI-DCClusterTopology

Examples of performing topology CustomDataAPI DCClusterTopology

Usecase:

Get DC Cluster topology for dcg-1

Request:

Request using vesctl:

vesctl request rpc topology.CustomDataAPI.DCClusterTopology -i request.yaml --uri /public/namespaces/system/topology/dc_cluster_group/dcg-1 --http-method POST

where file request.yaml has following contents:

metricSelector:
  edge:
  - METRIC_TYPE_IN_BYTES
  endTime: "1580407200"
  node:
  - METRIC_TYPE_IN_BYTES
  startTime: "1580403600"

vesctl yaml response:

edges: []
nodes: []

Request using curl:

curl -X 'POST' -d '{"metricSelector":{"startTime":"1580403600","endTime":"1580407200","node":["METRIC_TYPE_IN_BYTES"],"edge":["METRIC_TYPE_IN_BYTES"]}}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build511723821_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/data/namespaces/system/topology/dc_cluster_group/dcg-1'

curl response:

HTTP/1.1 200 OK
Content-Length: 38
Content-Type: application/json
Date: Wed, 27 Oct 2021 18:30:28 GMT
Vary: Accept-Encoding

{
  "nodes": [
  ],
  "edges": [
  ]
}