1
0
Fork 0
mirror of https://github.com/Luzifer/mondash.git synced 2024-12-22 20:11:18 +00:00

Fix: Add missing "Value" field

This commit is contained in:
Knut Ahlers 2016-09-06 18:44:27 +02:00
parent 7017b80dee
commit 3210519660
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -100,6 +100,9 @@ type PostMetricInput struct {
// One of: OK, Warning, Critical, Unknown
Status Status `json:"status"`
// The metric value to store with the status
Value float64 `json:"value"`
// Time in seconds when to remove the metric if there is no update (Valid: `0 < x < 604800`)
// Default: `604800`
Expires int64 `json:"expires,omitempty"`