mirror of
https://github.com/Luzifer/mondash.git
synced 2024-11-10 00:20:02 +00:00
Added "value" parameter to API documentation and welcome runner
This commit is contained in:
parent
13beddc97a
commit
daa9b7eed7
2 changed files with 13 additions and 11 deletions
|
@ -62,7 +62,8 @@ This API controls the metrics on your dashboard
|
|||
"description": "Currently there are 12 bottles of beer in the fridge",
|
||||
"status": "OK",
|
||||
"expires": 604800,
|
||||
"freshness": 3600
|
||||
"freshness": 3600,
|
||||
"value": 12.0
|
||||
}
|
||||
|
||||
+ Attributes (object)
|
||||
|
|
|
@ -36,6 +36,7 @@ func runWelcomePage() {
|
|||
Status: status,
|
||||
Expires: 86400,
|
||||
Freshness: 120,
|
||||
Value: float64(beers),
|
||||
}
|
||||
|
||||
body, err := json.Marshal(beer)
|
||||
|
|
Loading…
Reference in a new issue