GetAccountActivity
const url = 'https://example.com/hopbox.admin.v1.MonitorService/GetAccountActivity';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.MonitorService/GetAccountActivity \ --header 'Connect-Protocol-Version: 1' \ --header 'Connect-Timeout-Ms: 1000' \ --header 'Content-Type: application/json' \ --data '{}'GetAccountActivity returns the sign-ups, the new orgs and keys, the URLs made public, and the refusals of the rate limits of the last 24 hours, hour by hour, for the bursts on the Accounts page.
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”GetAccountActivityRequest has no fields.
object
Example generated
{}Responses
Section titled “Responses”Success
GetAccountActivityResponse holds the account activity of the last 24 hours.
object
Sample_time is the time of the newest sample of the leader, or absent without one.
Hours are the 24 hours that end at the time of the call, oldest first.
ActivityHour counts the events of one hour.
object
Start_time is the start of the hour.
Last_day counts the events of the 24 hours.
object
Sign_ups counts the new accounts that were not refused (hopbox_account_creations_total).
Org_creations counts the new orgs (hopbox_audit_entries_total, action org.create).
Api_key_creations counts the new API keys of every kind (hopbox_api_key_creations_total).
Urls_made_public counts the changes of the visibility of a machine URL from private to public, from the audit log of the control store, because no metric names the visibility. url_changes counts them too.
Rate_limited counts the requests that a rate limit refused (hopbox_rate_limited_total).
Limit_refusals counts the calls that an org limit refused (hopbox_limit_refusals_total).
Api_errors counts the API calls that ended with the code internal, unavailable, unknown, or data_loss (hopbox_api_calls_total).
Executor_failures counts the failed actions of the executors of the nodes (hopbox_executor_actions_total, result failed).
Url_changes counts the changes of the port and the visibility of machine URLs (hopbox_audit_entries_total, actions machine.set_url_port and machine.set_url_visibility), as the alert HopboxURLChurn counts them.
Rate_limited counts the refusals of each rate limit in the 24 hours (hopbox_rate_limited_total), by limit, the most first. A limit without a refusal is absent.
LimitCount is the count of one rate limit.
object
Limit is the name of the limit, such as account_creations.
Public_urls counts the machines with a public URL now.
Public_url_orgs counts the orgs with a machine with a public URL now.
Suspended_orgs counts the suspended orgs now.
Grafana_url is grafana_url of the install config, or empty.
Example
{ "sampleTime": "2023-01-15T01:30:15.01Z", "hours": [ { "startTime": "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"}