Skip to content

GetAccountActivity

POST
/hopbox.admin.v1.MonitorService/GetAccountActivity
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.

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
GetAccountActivityRequest

GetAccountActivityRequest has no fields.

object

Example generated

{}

Success

Media typeapplication/json
GetAccountActivityResponse

GetAccountActivityResponse holds the account activity of the last 24 hours.

object
sampleTime
sample_time

Sample_time is the time of the newest sample of the leader, or absent without one.

string format: date-time
hours
hours

Hours are the 24 hours that end at the time of the call, oldest first.

Array<object>
ActivityHour

ActivityHour counts the events of one hour.

object
startTime
start_time

Start_time is the start of the hour.

string format: date-time
signUps
sign_ups
string format: int64
orgCreations
org_creations
string format: int64
apiKeyCreations
api_key_creations
string format: int64
urlsMadePublic
urls_made_public
string format: int64
rateLimited
rate_limited
string format: int64
urlChanges
url_changes
string format: int64
lastDay
last_day

Last_day counts the events of the 24 hours.

object
signUps
sign_ups

Sign_ups counts the new accounts that were not refused (hopbox_account_creations_total).

string format: int64
orgCreations
org_creations

Org_creations counts the new orgs (hopbox_audit_entries_total, action org.create).

string format: int64
apiKeyCreations
api_key_creations

Api_key_creations counts the new API keys of every kind (hopbox_api_key_creations_total).

string format: int64
urlsMadePublic
urls_made_public

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.

string format: int64
rateLimited
rate_limited

Rate_limited counts the requests that a rate limit refused (hopbox_rate_limited_total).

string format: int64
limitRefusals
limit_refusals

Limit_refusals counts the calls that an org limit refused (hopbox_limit_refusals_total).

string format: int64
apiErrors
api_errors

Api_errors counts the API calls that ended with the code internal, unavailable, unknown, or data_loss (hopbox_api_calls_total).

string format: int64
executorFailures
executor_failures

Executor_failures counts the failed actions of the executors of the nodes (hopbox_executor_actions_total, result failed).

string format: int64
urlChanges
url_changes

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.

string format: int64
rateLimited
rate_limited

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.

Array<object>
LimitCount

LimitCount is the count of one rate limit.

object
limit
limit

Limit is the name of the limit, such as account_creations.

string
count
count
string format: int64
publicUrls
public_urls

Public_urls counts the machines with a public URL now.

string format: int64
publicUrlOrgs
public_url_orgs

Public_url_orgs counts the orgs with a machine with a public URL now.

integer format: int32
suspendedOrgs
suspended_orgs

Suspended_orgs counts the suspended orgs now.

string format: int64
grafanaUrl
grafana_url

Grafana_url is grafana_url of the install config, or empty.

string

Example

{
"sampleTime": "2023-01-15T01:30:15.01Z",
"hours": [
{
"startTime": "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"
}