45 lines
552 B
Markdown
45 lines
552 B
Markdown
# API Metrics
|
|
|
|
**_Work In Progress_**
|
|
|
|
## `/metrics`
|
|
|
|
Interact with metrics
|
|
|
|
Example URL: `http://status.cachethq.io/api/metrics`
|
|
|
|
* `GET`: returns a list of the current metrics
|
|
- success: 200:
|
|
|
|
~~~json
|
|
To be confirmed
|
|
~~~
|
|
|
|
* `POST`: Create an metric
|
|
- payload
|
|
|
|
~~~json
|
|
To be confirmed
|
|
~~~
|
|
|
|
|
|
|
|
## `/metrics/:id`
|
|
|
|
Show a single metric
|
|
|
|
Example URL: `http://status.cachethq.io/api/metrics/1`
|
|
|
|
* `GET`: Return a single metric
|
|
- success: 200:
|
|
|
|
~~~json
|
|
To be confirmed
|
|
~~~
|
|
|
|
## `/metrics/points`
|
|
|
|
To be confirmed
|
|
|
|
|