Xeonr Developer Docs

Aggregate integration renderer crashes

POST
/uplim.api.v1.IntegrationAdminService/AggregateIntegrationRendererCrashes

Returns count + distinct-user + last-seen buckets grouped by a chosen dimension (archive, content type, error name, kind, build hash, or time) for crashes within an integration the caller can read, or with owner_scope.team across every integration that team owns (the caller needs the upl writer role or above in the team, else NotFound; a system integration the team owns is included only for upl:admin). Distinct users are counted per bucket, so with a team a person who crashed two integrations counts once in a time bucket.

Authorization

OAuth2 upl:private
AuthorizationBearer <token>

OAuth 2.0 authorization

In: header

Scope: upl:private

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

integrationId?string

As on ListIntegrationRendererCrashesRequest: required unless owner_scope names a team, and a narrowing filter when it does.

Formatuuid
filter?
groupBy?string

enum.defined_only = true

Value in"RENDERER_CRASH_AGGREGATE_GROUP_BY_UNSPECIFIED" | "RENDERER_CRASH_AGGREGATE_GROUP_BY_INTEGRATION" | "RENDERER_CRASH_AGGREGATE_GROUP_BY_ARCHIVE" | "RENDERER_CRASH_AGGREGATE_GROUP_BY_CONTENT_TYPE" | "RENDERER_CRASH_AGGREGATE_GROUP_BY_ERROR_NAME" | "RENDERER_CRASH_AGGREGATE_GROUP_BY_KIND" | "RENDERER_CRASH_AGGREGATE_GROUP_BY_BUILD_HASH" | "RENDERER_CRASH_AGGREGATE_GROUP_BY_TIME"
ownerScope?|null

Aggregates over every integration a team owns, as on ListIntegrationRendererCrashesRequest.owner_scope.

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.IntegrationAdminService/AggregateIntegrationRendererCrashes" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "buckets": [
    {
      "key": "string",
      "count": "string",
      "distinctUsers": "string",
      "lastSeenAt": "2023-01-15T01:30:15.01Z"
    }
  ]
}
{
  "code": "not_found",
  "message": "string",
  "details": [
    {
      "type": "string",
      "value": "string",
      "debug": {}
    }
  ]
}