hashicorp / hashicorp/consul

Add service status change time field

Open
#461 19 comments 10 reactions 0 assignees View on GitHub
theme/operator-usability type/enhancement
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

It would be nice to know when the last state transition for a service occurred by querying the check API, for example:

```
{
"service:mysrv": {
"Node": "srv1",
"CheckID": "service:mysrv",
"Name": "Service 'mysrv' check",
"Status": "passing",
"LastChangeTime": 123456789,
"Notes": "",
"Output": "",
"ServiceID": "mysrv",
"ServiceName": "mysrv"
}
}
```

UTC ISO8601 timestamp is slightly more readable, but a UNIX timestamp would be fine as well.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.