Skip to content
GitHubLog inStart free
cetra is not released yet. These docs describe the development version.

Save the project's Overview

PUT
/api/v1/projects/{project}/dashboards/overview
curl --request PUT \
--url http://localhost:8080/api/v1/projects/example/dashboards/overview \
--header 'Content-Type: application/json' \
--cookie cetra_session=<cetra_session> \
--data '{ "definition": { "widgets": [ { "chart": { "fade_below": 1, "share": true, "split": true, "stacked": true, "type": "line" }, "id": "example", "kind": "chart", "layout": { "h": 1, "w": 1, "x": 1, "y": 1 }, "query": { "breakdown": { "field": "example", "limit": 1, "other": true }, "filter": "example", "measures": [ { "agg": "count", "field": "example", "label": "example", "where": "example" } ], "source": "traces" }, "title": "example" } ] }, "version": 1 }'

Stores the widgets as the project’s Overview. With nothing stored and no version, creates it at version 1 (201). Otherwise version must be the stored version: the save updates it (200) and raises the version by one. Any other version is 409 with the stored version in detail; without a stored Overview, a version is also 409 with 0. Every widget query is checked before the write. Same roles as create.

project
required
string

Project UUID, URL-encoded org-slug/project-slug, or current.

Media typeapplication/json

The body of PUT /api/v1/projects/{project}/dashboards/overview.

object
definition
required

The widgets.

object
widgets
required

Up to 50 widgets.

Array<object>

One widget of a dashboard.

object
chart

Chart settings. Chart widgets only.

object
fade_below

Fades the buckets with fewer rows than this, 1 to 1000. Bar only.

integer format: int64
share

Shows each row’s share of the first measure’s total. Table only.

boolean
split

One small chart per group. Line only.

boolean
stacked

Stacks the series. Bar and area only.

boolean
type
required

The chart type.

string
Allowed values: line bar area bar_h number table
id
required

1 to 64 characters of [A-Za-z0-9_-], unique in the dashboard.

string
kind
required

Chart or heading.

string
Allowed values: chart heading
layout
required

Position and size.

object
h
required

Height in rows, 1 to 40.

integer format: int64
w
required

Width in columns, 1 to 60; x + w is at most 60.

integer format: int64
x
required

Column, 0 to 59.

integer format: int64
y
required

Row, 0 to 1000.

integer format: int64
query

The data. Chart widgets only.

object
breakdown

The split, if any.

object
field
required

The field the rows are grouped by.

string
limit

Groups kept, 1 to 20. Default 5.

integer
other

Whether the rows of every other value form one more group. Default true.

boolean
filter

A filter over the source view.

string
measures
required

One to six measures.

Array<object>

One measure of a widget query.

object
agg
required

How the rows aggregate.

string
Allowed values: count count_distinct sum avg min max p50 p75 p90 p95 p99 rate
field

The field aggregated. Absent for count and rate.

string
label

Name shown in the legend, 0 to 60 characters. Not part of the query.

string
where

A filter over the source view. Required for rate.

string
source
required

The view the query reads.

string
Allowed values: traces spans scores
title
required

Title, 0 to 100 characters (1 to 100 for a heading).

string
version

The version the caller read; absent when the project shows the built-in preset.

integer format: int64

The updated Overview.

Media typeapplication/json

A dashboard with its definition.

object
created_at
required

Creation time, nanoseconds since the Unix epoch. JSON is RFC 3339.

string format: date-time
created_by

Creator. Omitted when the user is gone.

string format: uuid
definition
required

The widgets.

object
widgets
required

Up to 50 widgets.

Array<object>

One widget of a dashboard.

object
chart

Chart settings. Chart widgets only.

object
fade_below

Fades the buckets with fewer rows than this, 1 to 1000. Bar only.

integer format: int64
share

Shows each row’s share of the first measure’s total. Table only.

boolean
split

One small chart per group. Line only.

boolean
stacked

Stacks the series. Bar and area only.

boolean
type
required

The chart type.

string
Allowed values: line bar area bar_h number table
id
required

1 to 64 characters of [A-Za-z0-9_-], unique in the dashboard.

string
kind
required

Chart or heading.

string
Allowed values: chart heading
layout
required

Position and size.

object
h
required

Height in rows, 1 to 40.

integer format: int64
w
required

Width in columns, 1 to 60; x + w is at most 60.

integer format: int64
x
required

Column, 0 to 59.

integer format: int64
y
required

Row, 0 to 1000.

integer format: int64
query

The data. Chart widgets only.

object
breakdown

The split, if any.

object
field
required

The field the rows are grouped by.

string
limit

Groups kept, 1 to 20. Default 5.

integer
other

Whether the rows of every other value form one more group. Default true.

boolean
filter

A filter over the source view.

string
measures
required

One to six measures.

Array<object>

One measure of a widget query.

object
agg
required

How the rows aggregate.

string
Allowed values: count count_distinct sum avg min max p50 p75 p90 p95 p99 rate
field

The field aggregated. Absent for count and rate.

string
label

Name shown in the legend, 0 to 60 characters. Not part of the query.

string
where

A filter over the source view. Required for rate.

string
source
required

The view the query reads.

string
Allowed values: traces spans scores
title
required

Title, 0 to 100 characters (1 to 100 for a heading).

string
description

Free text, 0 to 500 characters.

string
id
required

Dashboard id.

string format: uuid
name
required

Display name. Names are not unique.

string
updated_at
required

Last update, nanoseconds since the Unix epoch. JSON is RFC 3339.

string format: date-time
updated_by

Last editor. Omitted when the user is gone.

string format: uuid
version
required

Incremented by every change. A PATCH names the version it read.

integer format: int64

Example

{
"definition": {
"widgets": [
{
"chart": {
"type": "line"
},
"kind": "chart",
"query": {
"measures": [
{
"agg": "count"
}
],
"source": "traces"
}
}
]
}
}

The created Overview.

Media typeapplication/json

A dashboard with its definition.

object
created_at
required

Creation time, nanoseconds since the Unix epoch. JSON is RFC 3339.

string format: date-time
created_by

Creator. Omitted when the user is gone.

string format: uuid
definition
required

The widgets.

object
widgets
required

Up to 50 widgets.

Array<object>

One widget of a dashboard.

object
chart

Chart settings. Chart widgets only.

object
fade_below

Fades the buckets with fewer rows than this, 1 to 1000. Bar only.

integer format: int64
share

Shows each row’s share of the first measure’s total. Table only.

boolean
split

One small chart per group. Line only.

boolean
stacked

Stacks the series. Bar and area only.

boolean
type
required

The chart type.

string
Allowed values: line bar area bar_h number table
id
required

1 to 64 characters of [A-Za-z0-9_-], unique in the dashboard.

string
kind
required

Chart or heading.

string
Allowed values: chart heading
layout
required

Position and size.

object
h
required

Height in rows, 1 to 40.

integer format: int64
w
required

Width in columns, 1 to 60; x + w is at most 60.

integer format: int64
x
required

Column, 0 to 59.

integer format: int64
y
required

Row, 0 to 1000.

integer format: int64
query

The data. Chart widgets only.

object
breakdown

The split, if any.

object
field
required

The field the rows are grouped by.

string
limit

Groups kept, 1 to 20. Default 5.

integer
other

Whether the rows of every other value form one more group. Default true.

boolean
filter

A filter over the source view.

string
measures
required

One to six measures.

Array<object>

One measure of a widget query.

object
agg
required

How the rows aggregate.

string
Allowed values: count count_distinct sum avg min max p50 p75 p90 p95 p99 rate
field

The field aggregated. Absent for count and rate.

string
label

Name shown in the legend, 0 to 60 characters. Not part of the query.

string
where

A filter over the source view. Required for rate.

string
source
required

The view the query reads.

string
Allowed values: traces spans scores
title
required

Title, 0 to 100 characters (1 to 100 for a heading).

string
description

Free text, 0 to 500 characters.

string
id
required

Dashboard id.

string format: uuid
name
required

Display name. Names are not unique.

string
updated_at
required

Last update, nanoseconds since the Unix epoch. JSON is RFC 3339.

string format: date-time
updated_by

Last editor. Omitted when the user is gone.

string format: uuid
version
required

Incremented by every change. A PATCH names the version it read.

integer format: int64

Example

{
"definition": {
"widgets": [
{
"chart": {
"type": "line"
},
"kind": "chart",
"query": {
"measures": [
{
"agg": "count"
}
],
"source": "traces"
}
}
]
}
}

The request is malformed or a filter is invalid.

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}

No credentials, or the credentials are invalid.

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}

The credentials do not allow this operation, or the organization’s plan does not include it (code plan_required).

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}

The resource does not exist.

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}

The request conflicts with the current state.

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}

The request body is larger than the limit.

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}

The request body is not JSON.

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}

Too many requests.

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}