GET /metrics?hostname=example.com&any_part[]=cpu&any_part[]=load
{
latest_datapoints_href: "http://tychoapp.com/metrics/datapoints/latest?hostname=example.com&any_part[]=cpu&any_part[]=load",
datapoints_for_interval_href: "http://tychoapp.com/metrics/datapoints?hostname=example.com&any_part[]=cpu&any_part[]=load",
items: [
{
href: "http://tychoapp.com/metrics/example.com/cpu/0/idle",
name: "example.com/cpu/0/idle"
},
{
href: "http://tychoapp.com/metrics/example.com/load/shortterm",
name: "example.com/load/shortterm"
}
]
}
Filtered Latest Datapoints
GET /metrics/datapoints/latest?hostname=example.com&any_part[]=cpu&any_part[]=load
{
items: [
{
metric_href: "http://tychoapp.com/metrics/example.com/cpu/0/idle",
latest_value: 95.6,
latest_timestamp: 1234567890
},
// ...
]
}
Filtered Datapoints by Interval
GET /metrics/datapoints?hostname=example.com&any_part[]=cpu&any_part[]=load&start_time=x&end_time=y
{
items: [
{
metric_href: "http://tychoapp.com/metrics/example.com/cpu/0/idle",
values: [
[1234567890, 95.6], // ...
]
},
// ...
]
}