Read Disk data

get/api/v1/metrics/disk

Response

OK

Example response

{
  "data": [
    {
      "device": "/dev/sda1",
      "mountpoint": "/home",
      "total_bytes": 1099511627776,
      "free_bytes": 549755813888,
      "used_bytes": 549755813888,
      "usage_percent": 50,
      "total_inodes": 1000000,
      "free_inodes": 500000,
      "used_inodes": 500000,
      "inodes_usage_percent": 50,
      "read_bytes": 1024000,
      "write_bytes": 512000,
      "read_time": 1000,
      "write_time": 500
    }
  ],
  "errors": [
    {
      "metric": [
        "cpu.temperature"
      ]
    }
  ]
}

Changes

Changed in 5 of the 8 revisions of this API.327

    • added the optional property data/items/mountpoint to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/mountpoint to the response with the 207 status

      response-optional-property-added

    • removed the optional property errors/items/error from the response with the 200 status

      response-optional-property-removed

    • removed the optional property errors/items/error from the response with the 207 status

      response-optional-property-removed

    • added the optional property errors/items/err to the response with the 200 status

      response-optional-property-added

    • added the optional property errors/items/err to the response with the 207 status

      response-optional-property-added

  • a5791047c7e422See the full diff
    • the errors/items/metric response's property type/format changed from string/ to array/ for status 200

      response-property-type-changed

    • the errors/items/metric response's property type/format changed from string/ to array/ for status 207

      response-property-type-changed

    • the endpoint scheme security type AND scheme AND bearerFormat was added to the API

      api-security-added

    • the endpoint scheme security bearerAuth was removed from the API

      api-security-removed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 10 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog