ListAdminNotices
const url = 'https://example.com/hopbox.admin.v1.InstanceAdminService/ListAdminNotices';const options = { method: 'POST', headers: { 'Connect-Protocol-Version': '1', 'Connect-Timeout-Ms': '1000', 'Content-Type': 'application/json' }, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/hopbox.admin.v1.InstanceAdminService/ListAdminNotices \ --header 'Connect-Protocol-Version: 1' \ --header 'Connect-Timeout-Ms: 1000' \ --header 'Content-Type: application/json' \ --data '{}'ListAdminNotices lists the open notices of the instance admin of the session, newest first. Only an admin session makes it, because each notice belongs to an account.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Define the version of the Connect protocol
Define the version of the Connect protocol
Example
1Define the timeout, in ms
Define the timeout, in ms
Example
1000Request Bodyrequired
Section titled “Request Bodyrequired”ListAdminNoticesRequest has no fields.
object
Example generated
{}Responses
Section titled “Responses”Success
ListAdminNoticesResponse lists the open notices, newest first, at most 100.
object
AdminNotice tells an instance admin about an action of another caller that leaves something that lasts, such as a new admin key, a grant of the instance admin role, a new sign-in method of an instance admin, or a change of the OAuth or mail config. It never holds a secret.
object
Id is the UUID of the audit entry of the action.
Action is the action of the audit entry, such as admin_key.create.
Summary says what changed, in one or more sentences. A change of several settings has more.
Advice says how to undo the change if nobody that the reader trusts made it.
Actor_kind is the actor kind of the audit entry: session, cli_token, admin_key, or local_root.
Actor_account_id is the UUID of the account of a session or of a CLI token. It is empty for other actors.
Actor_name is the display name of that account, or its first email, or empty.
Actor_credential_id is the UUID of the session, of the CLI token, or of the admin key. It is empty for local_root.
Target_kind is the target kind of the audit entry, or empty.
Target_id is the target ID of the audit entry, or empty.
Create_time is the time of the action.
Kind is security for an action that outlasts the session that did it, sign_up for a new pending account, alert for an alert of the monitoring bundle, or abuse for a signal of the detection of abuse inside hopboxd. The console lists each kind under its own heading.
Alert is the alert of a notice of the kind alert, as Alertmanager sent it last, or the signal of a notice of the kind abuse, as the last run of the detection found it. It is absent for the other kinds.
object
Name is the label alertname, such as HopboxMachineCPUSustained.
Severity is the label severity: critical, warning, or info.
Summary is the annotation summary, or empty.
Description is the annotation description, or empty.
Runbook_url is the annotation runbook_url, the entry of the alert in the guide, or empty.
Labels are the labels that name a machine or a server: machine, name, org, server, and instance. A label that the alert does not have is absent.
object
Start_time is the time at which the alert started to fire.
Update_time is the last time at which Alertmanager sent the alert.
Fingerprint is the fingerprint of the alert in Alertmanager, 16 hex characters.
Resolve_time is the end of the alert. It is absent while the alert fires.
Resolve_cause is resolved when Alertmanager reported the end, or fired_again when the alert fired again with another start time after an end that hopbox missed. It is empty while the alert fires.
Kind is alert for an alert of Alertmanager, or abuse for a signal of the detection of abuse inside hopboxd. The name of a signal is the signal, such as cpu_sustained, its severity is warning, its fingerprint is empty, and its labels can also hold account.
Id is the ID of the audit entry that started the alert or the signal: alert.fire or abuse.detect. It names one firing of an alert, or one signal, for good.
Total counts every open notice of the account, also those after the first 100.
Resolved_alerts are the alerts of the monitoring bundle that ended in the last 30 days, newest end first, at most 50. Their notices closed by themselves. They are the same for each instance admin.
AdminAlert is an alert of the monitoring bundle that fires now.
object
Name is the label alertname, such as HopboxMachineCPUSustained.
Severity is the label severity: critical, warning, or info.
Summary is the annotation summary, or empty.
Description is the annotation description, or empty.
Runbook_url is the annotation runbook_url, the entry of the alert in the guide, or empty.
Labels are the labels that name a machine or a server: machine, name, org, server, and instance. A label that the alert does not have is absent.
object
Start_time is the time at which the alert started to fire.
Update_time is the last time at which Alertmanager sent the alert.
Fingerprint is the fingerprint of the alert in Alertmanager, 16 hex characters.
Resolve_time is the end of the alert. It is absent while the alert fires.
Resolve_cause is resolved when Alertmanager reported the end, or fired_again when the alert fired again with another start time after an end that hopbox missed. It is empty while the alert fires.
Kind is alert for an alert of Alertmanager, or abuse for a signal of the detection of abuse inside hopboxd. The name of a signal is the signal, such as cpu_sustained, its severity is warning, its fingerprint is empty, and its labels can also hold account.
Id is the ID of the audit entry that started the alert or the signal: alert.fire or abuse.detect. It names one firing of an alert, or one signal, for good.
Example
{ "notices": [ { "createTime": "2023-01-15T01:30:15.01Z", "alert": { "startTime": "2023-01-15T01:30:15.01Z", "updateTime": "2023-01-15T01:30:15.01Z", "resolveTime": "2023-01-15T01:30:15.01Z" } } ], "resolvedAlerts": [ { "startTime": "2023-01-15T01:30:15.01Z", "updateTime": "2023-01-15T01:30:15.01Z", "resolveTime": "2023-01-15T01:30:15.01Z" } ]}default
Section titled “default”Error
Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation
object
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
A list of messages that carry the error details. There is no limit on the number of messages.
Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.
object
A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo.
The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.
Deserialized error detail payload. The ‘type’ field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.
object
Example
{ "code": "canceled"}