Start a metric stream for supported Containers, Servers, Builders or Data, then read it with metric_stream_show. metric_source_list gives the source type and scope.
Arguments
| Argument |
Type |
Description |
data |
object |
Values come from metric_source_list. Required. |
data.streamable_id |
string |
Id of the resource to monitor. |
data.source_type |
string |
Such as container. |
data.metric_scope |
string |
Such as environment-100:web. |
data.time_range |
string |
Defaults to live. |
Example
{"data":{"clone_url":"https://github.com/acme/shop","services":[{"name":"web","command":"web","port":3000,"publicly_exposed":true}]}}