v1

latestOpenAPI 3.0.3raw.githubusercontent.com2025-01-0926145.0 KB
KVM

Get traffic chart data (24fire+)

Return traffic data in a format suitable for chart rendering or as a Base64 image. Requires 24fire+.

post/api/kvm/{internal_id}/traffic/chart

Path parameters

internal_idstring required

internal_id of the KVM server

Response

Traffic chart data

object required

Example response

{
  "status": "success",
  "message": "traffic data are listed below",
  "data": {
    "config": {
      "chart": {
        "type": "area",
        "height": 300,
        "toolbar": {
          "show": false
        },
        "zoom": {
          "enabled": false
        }
      },
      "dataLabels": {
        "enabled": false
      },
      "series": [
        {
          "name": "Eingehender Traffic",
          "data": [
            0.26,
            0.26,
            0.24
          ]
        },
        {
          "name": "Ausgehender Traffic",
          "data": [
            0.02,
            0.01,
            0.01
          ]
        }
      ],
      "colors": [
        "rgba(0,119,255, 1)",
        "rgba(255,99,71, 1)"
      ],
      "xaxis": {
        "categories": [
          "25.05.",
          "26.05.",
          "27.05."
        ]
      },
      "yaxis": {
        "title": {
          "text": "Traffic in GB",
          "align": "left",
          "margin": 10
        }
      }
    }
  }
}