action hetzner_get_servers_id_metrics { label: "Get Metrics for a Server" description: "Get Metrics for specified Server.\n\nYou must specify the type of metric to get: cpu, disk or network. You can also specify more than one type by comma separation, e.g. cpu,disk.\n\nDepending on the type you will get different time series data\n\n| Type | Timeseries | Unit | Description |\n|---------|-------------------------|-----------|------------------------------------------------------|\n| cpu | cpu | percent | Percent CPU usage |\n| disk | disk.0.iops.read | iop/s | Number of read IO operations per second |\n| | disk.0.iops.write | iop/s | Number of write IO operations per second |\n| | disk.0.bandwidth.read | bytes/s | Bytes read per second |\n| | disk.0.bandwidth.write | bytes/s | Bytes written per second |\n| network | network.0.pps.in | packets/s | Public Network interface packets per second received |\n| | network.0.pps.out | packets/s | Public Network interface packets per second sent |\n| | network.0.bandwidth.in | bytes/s | Public Network interface bytes/s received |\n| | network.0.bandwidth.out | bytes/s | Public Network interface bytes/s sent |\n\nMetrics are available for the last 30 days only.\n\nIf you do not provide the step argument we will automatically adjust it so that a maximum of 200 samples are returned.\n\nWe limit the number of samples returned to a maximum of 500 and will adjust the step parameter accordingly.\n" provider: hetzner method: GET path: "/servers/{id}/metrics" encoding: json input: { type: "object" properties: { end: { type: "string" } id: { type: "integer" } start: { type: "string" } step: { type: "string" } type: { type: "string" enum: ["cpu", "disk", "network"] } } required: ["end", "id", "start", "type"] additionalProperties: false } output: { type: "object" required: ["metrics"] properties: { metrics: { type: "object" required: ["end", "start", "step", "time_series"] properties: { end: { type: "string" description: "End of period of metrics reported (in ISO-8601 format)" } start: { type: "string" description: "Start of period of metrics reported (in ISO-8601 format)" } step: { type: "number" description: "Resolution of results in seconds." } time_series: { type: "object" description: "Hash with timeseries information, containing the name of timeseries as key" } } } } } }