hnhdigital-os/php-linode-api

View on GitHub
spec-old/Instance/Stats.yml

Summary

Maintainability
Test Coverage
endpoint: linode/instances/%s/stats
description: Returns CPU, IO, IPv4, and IPv6 stats for the last 24 hours.
url: https://developers.linode.com/v4/reference/linode#stats
auto-load: false

parameters:

    linode_id: 
      type: int

get:

  current:
    url: https://developers.linode.com/v4/reference/endpoints/linode/instances/$id/stats
    description: Returns statistics for the last 24 hours.
    endpoint: 

  period:
    url: https://developers.linode.com/v4/reference/endpoints/linode/instances/$id/stats/$year/$month
    description: Returns CPU, IO, IPv4, and IPv6 stats for a specific month.
    endpoint: /$year/$month

    parameters:

      year:
        type: int

      month:
        type: int