pub struct ComponentHealth {Show 14 fields
pub id: String,
pub channel: String,
pub account: String,
pub bot_id: Option<String>,
pub user_id: Option<String>,
pub enabled: bool,
pub state: ComponentState,
pub last_success_unix_seconds: Option<u64>,
pub error: Option<String>,
pub restarts: u64,
pub remote_tools: RemoteTools,
pub senders: Option<Senders>,
pub purpose: Option<Purpose>,
pub mail: Option<MailCounts>,
}Expand description
The health of one channel account.
Fields§
§id: StringComponent ID, <channel>:<account>.
channel: StringThe chat channel this account belongs to, such as wechat.
account: StringThe account name within the channel.
bot_id: Option<String>The platform’s ID of the bot account, when known.
user_id: Option<String>The platform’s ID of the account’s owner, when known.
enabled: boolWhether the account should run.
state: ComponentStateLifecycle state.
last_success_unix_seconds: Option<u64>When the platform last answered successfully.
error: Option<String>The latest error, if any.
restarts: u64Restarts since the daemon started.
remote_tools: RemoteToolsEffective remote tool authority; owner only when the owner ID is known.
senders: Option<Senders>Who the account answers, as set; owner with no known owner ID
answers nobody. None from daemons before 0.3.0, which answer anyone.
purpose: Option<Purpose>What a chat account carries, when it is not an ordinary chat:
mail for a mail chat. Absent for ordinary chats, email accounts,
and daemons before mail.
mail: Option<MailCounts>An email account’s counts: never addresses, subjects, or any other mail text. Absent for chat accounts.