Skip to content

ListAdminNotices

POST
/hopbox.admin.v1.InstanceAdminService/ListAdminNotices
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.

Connect-Protocol-Version
Connect-Protocol-Version

Define the version of the Connect protocol

number
Allowed value: 1

Define the version of the Connect protocol

Example

1
Connect-Timeout-Ms
Connect-Timeout-Ms

Define the timeout, in ms

number

Define the timeout, in ms

Example

1000
Media typeapplication/json
ListAdminNoticesRequest

ListAdminNoticesRequest has no fields.

object

Example generated

{}

Success

Media typeapplication/json
ListAdminNoticesResponse

ListAdminNoticesResponse lists the open notices, newest first, at most 100.

object
notices
notices
Array<object>
AdminNotice

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
id

Id is the UUID of the audit entry of the action.

string
action
action

Action is the action of the audit entry, such as admin_key.create.

string
summary
summary

Summary says what changed, in one or more sentences. A change of several settings has more.

string
advice
advice

Advice says how to undo the change if nobody that the reader trusts made it.

string
actorKind
actor_kind

Actor_kind is the actor kind of the audit entry: session, cli_token, admin_key, or local_root.

string
actorAccountId
actor_account_id

Actor_account_id is the UUID of the account of a session or of a CLI token. It is empty for other actors.

string
actorName
actor_name

Actor_name is the display name of that account, or its first email, or empty.

string
actorCredentialId
actor_credential_id

Actor_credential_id is the UUID of the session, of the CLI token, or of the admin key. It is empty for local_root.

string
targetKind
target_kind

Target_kind is the target kind of the audit entry, or empty.

string
targetId
target_id

Target_id is the target ID of the audit entry, or empty.

string
createTime
create_time

Create_time is the time of the action.

string format: date-time
kind
kind

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.

string
alert
alert

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
name

Name is the label alertname, such as HopboxMachineCPUSustained.

string
severity
severity

Severity is the label severity: critical, warning, or info.

string
summary
summary

Summary is the annotation summary, or empty.

string
description
description

Description is the annotation description, or empty.

string
runbookUrl
runbook_url

Runbook_url is the annotation runbook_url, the entry of the alert in the guide, or empty.

string
labels
labels

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
key
additional properties
value
string
startTime
start_time

Start_time is the time at which the alert started to fire.

string format: date-time
updateTime
update_time

Update_time is the last time at which Alertmanager sent the alert.

string format: date-time
fingerprint
fingerprint

Fingerprint is the fingerprint of the alert in Alertmanager, 16 hex characters.

string
resolveTime
resolve_time

Resolve_time is the end of the alert. It is absent while the alert fires.

string format: date-time
resolveCause
resolve_cause

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.

string
kind
kind

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.

string
id
id

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.

string
total
total

Total counts every open notice of the account, also those after the first 100.

integer format: int32
resolvedAlerts
resolved_alerts

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.

Array<object>
AdminAlert

AdminAlert is an alert of the monitoring bundle that fires now.

object
name
name

Name is the label alertname, such as HopboxMachineCPUSustained.

string
severity
severity

Severity is the label severity: critical, warning, or info.

string
summary
summary

Summary is the annotation summary, or empty.

string
description
description

Description is the annotation description, or empty.

string
runbookUrl
runbook_url

Runbook_url is the annotation runbook_url, the entry of the alert in the guide, or empty.

string
labels
labels

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
key
additional properties
value
string
startTime
start_time

Start_time is the time at which the alert started to fire.

string format: date-time
updateTime
update_time

Update_time is the last time at which Alertmanager sent the alert.

string format: date-time
fingerprint
fingerprint

Fingerprint is the fingerprint of the alert in Alertmanager, 16 hex characters.

string
resolveTime
resolve_time

Resolve_time is the end of the alert. It is absent while the alert fires.

string format: date-time
resolveCause
resolve_cause

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.

string
kind
kind

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.

string
id
id

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.

string

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"
}
]
}

Error

Media typeapplication/json
Connect Error
object
code

The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

string
Allowed values: canceled unknown invalid_argument deadline_exceeded not_found already_exists permission_denied resource_exhausted failed_precondition aborted out_of_range unimplemented internal unavailable data_loss unauthenticated
message

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.

string
details

A list of messages that carry the error details. There is no limit on the number of messages.

Array<object>

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
type

A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo.

string
value

The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.

string format: byte
debug
Debug

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
key
additional properties
any
key
additional properties
any
key
additional properties
any

Example

{
"code": "canceled"
}