Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions content/en/api/v1/dashboards/examples.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"layout_type": "ordered",
"title": "Example-Dashboard with native semantic_mode",
"widgets": [
{
"definition": {
"type": "timeseries",
"requests": [
{
"queries": [
{
"data_source": "metrics",
"name": "query1",
"query": "avg:system.cpu.user{*}",
"semantic_mode": "native"
}
],
"response_format": "timeseries",
"formulas": [
{
"formula": "query1"
}
],
"display_type": "line"
}
]
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"layout_type": "ordered",
"title": "Example-Dashboard with combined semantic_mode",
"widgets": [
{
"definition": {
"type": "timeseries",
"requests": [
{
"queries": [
{
"data_source": "metrics",
"name": "query1",
"query": "avg:system.cpu.user{*}",
"semantic_mode": "combined"
}
],
"response_format": "timeseries",
"formulas": [
{
"formula": "query1"
}
],
"display_type": "line"
}
]
}
}
]
}
29 changes: 15 additions & 14 deletions content/en/api/v1/dashboards/widgets.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions content/en/api/v1/notebooks/examples.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions content/en/api/v1/service-level-objectives/examples.json

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions data/api/v1/CodeExamples.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@
"suffix": "_1284514532",
"description": "Create a new dashboard with a timeseries widget using formulas and functions cloud cost query"
},
{
"group": "dashboards",
"suffix": "_865807520",
"description": "Create a new dashboard with a timeseries widget using formulas and functions metrics query with combined semantic_mode"
},
{
"group": "dashboards",
"suffix": "_3685886950",
"description": "Create a new dashboard with a timeseries widget using formulas and functions metrics query with native semantic_mode"
},
{
"group": "dashboards",
"suffix": "_2563642929",
Expand Down
13 changes: 13 additions & 0 deletions data/api/v1/full_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3059,11 +3059,24 @@ components:
description: Metrics query definition.
example: avg:system.cpu.user{*}
type: string
semantic_mode:
$ref: '#/components/schemas/FormulaAndFunctionMetricSemanticMode'
required:
- data_source
- query
- name
type: object
FormulaAndFunctionMetricSemanticMode:
description: Semantic mode for metrics queries. This determines how metrics
from different sources are combined or displayed.
enum:
- combined
- native
example: combined
type: string
x-enum-varnames:
- COMBINED
- NATIVE
FormulaAndFunctionProcessQueryDataSource:
description: Data sources that rely on the process backend.
enum:
Expand Down
Loading