ves-io-schema-graph-l3l4-CustomAPI-ByApplication

Examples of performing graph_l3l4 CustomAPI ByApplication

Usecase:

Get data by application

Request:

Request using vesctl:

vesctl request rpc graph_l3l4.CustomAPI.ByApplication -i request.yaml --uri /public/namespaces/system/graph/l3l4/by_application/123 --http-method POST

where file request.yaml has following contents:

endTime: "2020-01-30T18:00:00Z"
namespace: system
startTime: "2020-01-30T17:00:00Z"

vesctl yaml response:

in:
- name: http
  values:
  - timestamp: "2020-06-07T15:50:00Z"
    value: "38989760.000000"
  - timestamp: "2020-06-07T16:00:00Z"
    value: "47784586.666667"
  - timestamp: "2020-06-07T16:10:00Z"
    value: "52891040.000000"
- name: ssl
  values:
  - timestamp: "2020-06-07T15:50:00Z"
    value: "38989760.000000"
  - timestamp: "2020-06-07T16:00:00Z"
    value: "47784586.666667"
  - timestamp: "2020-06-07T16:10:00Z"
    value: "52891040.000000"
- name: smtp
  values:
  - timestamp: "2020-06-07T15:50:00Z"
    value: "38989760.000000"
  - timestamp: "2020-06-07T16:00:00Z"
    value: "47784586.666667"
  - timestamp: "2020-06-07T16:10:00Z"
    value: "52891040.000000"
- name: ftp
  values:
  - timestamp: "2020-06-07T15:50:00Z"
    value: "38989760.000000"
  - timestamp: "2020-06-07T16:00:00Z"
    value: "47784586.666667"
  - timestamp: "2020-06-07T16:10:00Z"
    value: "52891040.000000"
- name: dns
  values:
  - timestamp: "2020-06-07T15:50:00Z"
    value: "38989760.000000"
  - timestamp: "2020-06-07T16:00:00Z"
    value: "47784586.666667"
  - timestamp: "2020-06-07T16:10:00Z"
    value: "52891040.000000"
- name: other TCP
  values:
  - timestamp: "2020-06-07T15:50:00Z"
    value: "38989760.000000"
  - timestamp: "2020-06-07T16:00:00Z"
    value: "47784586.666667"
  - timestamp: "2020-06-07T16:10:00Z"
    value: "52891040.000000"
- name: other UDP
  values:
  - timestamp: "2020-06-07T15:50:00Z"
    value: "38989760.000000"
  - timestamp: "2020-06-07T16:00:00Z"
    value: "47784586.666667"
  - timestamp: "2020-06-07T16:10:00Z"
    value: "52891040.000000"
out:
- name: http
  values:
  - timestamp: "2020-06-07T15:50:00Z"
    value: "38989760.000000"
  - timestamp: "2020-06-07T16:00:00Z"
    value: "47784586.666667"
  - timestamp: "2020-06-07T16:10:00Z"
    value: "52891040.000000"
- name: ssl
  values:
  - timestamp: "2020-06-07T15:50:00Z"
    value: "38989760.000000"
  - timestamp: "2020-06-07T16:00:00Z"
    value: "47784586.666667"
  - timestamp: "2020-06-07T16:10:00Z"
    value: "52891040.000000"
- name: smtp
  values:
  - timestamp: "2020-06-07T15:50:00Z"
    value: "38989760.000000"
  - timestamp: "2020-06-07T16:00:00Z"
    value: "47784586.666667"
  - timestamp: "2020-06-07T16:10:00Z"
    value: "52891040.000000"
- name: ftp
  values:
  - timestamp: "2020-06-07T15:50:00Z"
    value: "38989760.000000"
  - timestamp: "2020-06-07T16:00:00Z"
    value: "47784586.666667"
  - timestamp: "2020-06-07T16:10:00Z"
    value: "52891040.000000"
- name: dns
  values:
  - timestamp: "2020-06-07T15:50:00Z"
    value: "38989760.000000"
  - timestamp: "2020-06-07T16:00:00Z"
    value: "47784586.666667"
  - timestamp: "2020-06-07T16:10:00Z"
    value: "52891040.000000"
- name: other TCP
  values:
  - timestamp: "2020-06-07T15:50:00Z"
    value: "38989760.000000"
  - timestamp: "2020-06-07T16:00:00Z"
    value: "47784586.666667"
  - timestamp: "2020-06-07T16:10:00Z"
    value: "52891040.000000"
- name: other UDP
  values:
  - timestamp: "2020-06-07T15:50:00Z"
    value: "38989760.000000"
  - timestamp: "2020-06-07T16:00:00Z"
    value: "47784586.666667"
  - timestamp: "2020-06-07T16:10:00Z"
    value: "52891040.000000"

Request using curl:

curl -X 'POST' -d '{"namespace":"system","start_time":"2020-01-30T17:00:00Z","end_time":"2020-01-30T18:00:00Z"}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build243329498_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/infraprotect/namespaces/system/graph/l3l4/by_application/123'

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Fri, 23 Sep 2022 13:12:21 GMT
Vary: Accept-Encoding

{
  "in": [
    {
      "name": "http",
      "values": [
        {
          "timestamp": "2020-06-07T15:50:00Z",
          "value": "38989760.000000"
        },
        {
          "timestamp": "2020-06-07T16:00:00Z",
          "value": "47784586.666667"
        },
        {
          "timestamp": "2020-06-07T16:10:00Z",
          "value": "52891040.000000"
        }
      ]
    },
    {
      "name": "ssl",
      "values": [
        {
          "timestamp": "2020-06-07T15:50:00Z",
          "value": "38989760.000000"
        },
        {
          "timestamp": "2020-06-07T16:00:00Z",
          "value": "47784586.666667"
        },
        {
          "timestamp": "2020-06-07T16:10:00Z",
          "value": "52891040.000000"
        }
      ]
    },
    {
      "name": "smtp",
      "values": [
        {
          "timestamp": "2020-06-07T15:50:00Z",
          "value": "38989760.000000"
        },
        {
          "timestamp": "2020-06-07T16:00:00Z",
          "value": "47784586.666667"
        },
        {
          "timestamp": "2020-06-07T16:10:00Z",
          "value": "52891040.000000"
        }
      ]
    },
    {
      "name": "ftp",
      "values": [
        {
          "timestamp": "2020-06-07T15:50:00Z",
          "value": "38989760.000000"
        },
        {
          "timestamp": "2020-06-07T16:00:00Z",
          "value": "47784586.666667"
        },
        {
          "timestamp": "2020-06-07T16:10:00Z",
          "value": "52891040.000000"
        }
      ]
    },
    {
      "name": "dns",
      "values": [
        {
          "timestamp": "2020-06-07T15:50:00Z",
          "value": "38989760.000000"
        },
        {
          "timestamp": "2020-06-07T16:00:00Z",
          "value": "47784586.666667"
        },
        {
          "timestamp": "2020-06-07T16:10:00Z",
          "value": "52891040.000000"
        }
      ]
    },
    {
      "name": "other TCP",
      "values": [
        {
          "timestamp": "2020-06-07T15:50:00Z",
          "value": "38989760.000000"
        },
        {
          "timestamp": "2020-06-07T16:00:00Z",
          "value": "47784586.666667"
        },
        {
          "timestamp": "2020-06-07T16:10:00Z",
          "value": "52891040.000000"
        }
      ]
    },
    {
      "name": "other UDP",
      "values": [
        {
          "timestamp": "2020-06-07T15:50:00Z",
          "value": "38989760.000000"
        },
        {
          "timestamp": "2020-06-07T16:00:00Z",
          "value": "47784586.666667"
        },
        {
          "timestamp": "2020-06-07T16:10:00Z",
          "value": "52891040.000000"
        }
      ]
    }
  ],
  "out": [
    {
      "name": "http",
      "values": [
        {
          "timestamp": "2020-06-07T15:50:00Z",
          "value": "38989760.000000"
        },
        {
          "timestamp": "2020-06-07T16:00:00Z",
          "value": "47784586.666667"
        },
        {
          "timestamp": "2020-06-07T16:10:00Z",
          "value": "52891040.000000"
        }
      ]
    },
    {
      "name": "ssl",
      "values": [
        {
          "timestamp": "2020-06-07T15:50:00Z",
          "value": "38989760.000000"
        },
        {
          "timestamp": "2020-06-07T16:00:00Z",
          "value": "47784586.666667"
        },
        {
          "timestamp": "2020-06-07T16:10:00Z",
          "value": "52891040.000000"
        }
      ]
    },
    {
      "name": "smtp",
      "values": [
        {
          "timestamp": "2020-06-07T15:50:00Z",
          "value": "38989760.000000"
        },
        {
          "timestamp": "2020-06-07T16:00:00Z",
          "value": "47784586.666667"
        },
        {
          "timestamp": "2020-06-07T16:10:00Z",
          "value": "52891040.000000"
        }
      ]
    },
    {
      "name": "ftp",
      "values": [
        {
          "timestamp": "2020-06-07T15:50:00Z",
          "value": "38989760.000000"
        },
        {
          "timestamp": "2020-06-07T16:00:00Z",
          "value": "47784586.666667"
        },
        {
          "timestamp": "2020-06-07T16:10:00Z",
          "value": "52891040.000000"
        }
      ]
    },
    {
      "name": "dns",
      "values": [
        {
          "timestamp": "2020-06-07T15:50:00Z",
          "value": "38989760.000000"
        },
        {
          "timestamp": "2020-06-07T16:00:00Z",
          "value": "47784586.666667"
        },
        {
          "timestamp": "2020-06-07T16:10:00Z",
          "value": "52891040.000000"
        }
      ]
    },
    {
      "name": "other TCP",
      "values": [
        {
          "timestamp": "2020-06-07T15:50:00Z",
          "value": "38989760.000000"
        },
        {
          "timestamp": "2020-06-07T16:00:00Z",
          "value": "47784586.666667"
        },
        {
          "timestamp": "2020-06-07T16:10:00Z",
          "value": "52891040.000000"
        }
      ]
    },
    {
      "name": "other UDP",
      "values": [
        {
          "timestamp": "2020-06-07T15:50:00Z",
          "value": "38989760.000000"
        },
        {
          "timestamp": "2020-06-07T16:00:00Z",
          "value": "47784586.666667"
        },
        {
          "timestamp": "2020-06-07T16:10:00Z",
          "value": "52891040.000000"
        }
      ]
    }
  ]
}