NetworkMetricsPost.json 1.12 KB
{
  "type": "object",
  "title": "networks",
  "required": [
    "networks"
  ],
  "properties": {
    "networks": {
      "type": "array",
      "xml": {
        "name": "networks",
        "wrapped": true
      },
      "items": {
        "type": "object",
        "title": "networks",
        "required": [
          "resourceName",
          "incomingBytes",
          "outgoingBytes",
          "incomingPackets",
          "outgoingPackets"
        ],
        "properties": {
          "resourceName": {
            "type": "string",
            "example": "eth0"
          },
          "incomingBytes": {
            "type": "integer",
            "format": "int64",
            "example": "1024"
          },
          "outgoingBytes": {
            "type": "integer",
            "format": "int64",
            "example": "1024"
          },
          "incomingPackets": {
            "type": "integer",
            "format": "int64",
            "example": "1000"
          },
          "outgoingPackets": {
            "type": "integer",
            "format": "int64",
            "example": "2000"
          }
        }
      }
    }
  }
}