Metrics over time

Pipeline metrics over time

GEThttps://cloud-api.calyptia.com/v2/pipelines/{pipelineID}/metrics_over_time
Authorization
Path parameters
pipelineID*string (uuid)
Query parameters
Response

OK

Body
input*MetricsOverTimeInput (object)
filter*MetricsOverTimeFilter (object)
output*MetricsOverTimeOutput (object)
Request
const response = await fetch('https://cloud-api.calyptia.com/v2/pipelines/{pipelineID}/metrics_over_time', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();
Response
{
  "input": {
    "bytes": [
      {
        "time": "2024-12-22T05:33:56.221Z",
        "value": 0
      }
    ],
    "records": [
      {
        "time": "2024-12-22T05:33:56.221Z",
        "value": 0
      }
    ]
  },
  "filter": {
    "bytes": [
      {
        "time": "2024-12-22T05:33:56.221Z",
        "value": 0
      }
    ],
    "records": [
      {
        "time": "2024-12-22T05:33:56.221Z",
        "value": 0
      }
    ],
    "addRecords": [
      {
        "time": "2024-12-22T05:33:56.221Z",
        "value": 0
      }
    ],
    "dropRecords": [
      {
        "time": "2024-12-22T05:33:56.221Z",
        "value": 0
      }
    ],
    "emitRecords": [
      {
        "time": "2024-12-22T05:33:56.221Z",
        "value": 0
      }
    ]
  },
  "output": {
    "bytes": [
      {
        "time": "2024-12-22T05:33:56.221Z",
        "value": 0
      }
    ],
    "records": [
      {
        "time": "2024-12-22T05:33:56.221Z",
        "value": 0
      }
    ],
    "errors": [
      {
        "time": "2024-12-22T05:33:56.221Z",
        "value": 0
      }
    ],
    "retries": [
      {
        "time": "2024-12-22T05:33:56.221Z",
        "value": 0
      }
    ],
    "retriedRecords": [
      {
        "time": "2024-12-22T05:33:56.221Z",
        "value": 0
      }
    ],
    "retriesFailed": [
      {
        "time": "2024-12-22T05:33:56.221Z",
        "value": 0
      }
    ],
    "droppedRecords": [
      {
        "time": "2024-12-22T05:33:56.221Z",
        "value": 0
      }
    ]
  }
}