set_status: add status_set_at timestamp (mtime of status file)
This commit is contained in:
parent
fe2933b213
commit
8e8e8a771f
7 changed files with 75 additions and 14 deletions
|
|
@ -513,6 +513,8 @@ pub enum AgentResponse {
|
|||
/// response). `hyperhive_rev` is `None` only when the configured
|
||||
/// flake URL has no canonical path. `status_text` is the last
|
||||
/// value written via `SetStatus`, or `None` if none has been set.
|
||||
/// `status_set_at` is a Unix timestamp (seconds since epoch) of
|
||||
/// when the status was last written; `None` when no status is set.
|
||||
Whoami {
|
||||
name: String,
|
||||
role: String,
|
||||
|
|
@ -520,6 +522,8 @@ pub enum AgentResponse {
|
|||
hyperhive_rev: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
status_text: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
status_set_at: Option<i64>,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
@ -936,5 +940,7 @@ pub enum ManagerResponse {
|
|||
hyperhive_rev: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
status_text: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
status_set_at: Option<i64>,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue