Skip to content
Open
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.

26 changes: 23 additions & 3 deletions content/en/api/v1/dashboards/widgets.json

Large diffs are not rendered by default.

86 changes: 86 additions & 0 deletions data/api/v1/full_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,50 @@ components:
type: string
x-enum-varnames:
- COHORT
ComparisonCustomTimeframe:
description: Fixed time range for a `custom_timeframe` comparison.
properties:
from:
description: Start time in milliseconds since epoch.
example: 1779290190000
format: int64
type: integer
to:
description: End time in milliseconds since epoch.
example: 1779894990000
format: int64
type: integer
required:
- from
- to
type: object
ComparisonDuration:
description: The comparison period. Use a preset `type` value or set `type` to `custom_timeframe` and provide `custom_timeframe` with explicit Unix timestamp bounds.
properties:
custom_timeframe:
$ref: "#/components/schemas/ComparisonCustomTimeframe"
description: Required when `type` is `custom_timeframe`. Fixed time range to compare against.
type:
$ref: "#/components/schemas/ComparisonDurationType"
required:
- type
type: object
ComparisonDurationType:
description: "Comparison window: `previous_timeframe` (same-length window immediately before current), `previous_day`, `previous_week`, `previous_month`, or `custom_timeframe` (set this to enable the `custom_timeframe` field)."
enum:
- previous_timeframe
- custom_timeframe
- previous_day
- previous_week
- previous_month
example: previous_timeframe
type: string
x-enum-varnames:
- PREVIOUS_TIMEFRAME
- CUSTOM_TIMEFRAME
- PREVIOUS_DAY
- PREVIOUS_WEEK
- PREVIOUS_MONTH
ContentEncoding:
description: HTTP header used to compress the media-type.
enum:
Expand Down Expand Up @@ -12135,6 +12179,45 @@ components:
x-enum-varnames:
- ASC
- DESC
QueryValueWidgetComparison:
description: A change indicator that compares the current value to a historical period.
properties:
directionality:
$ref: "#/components/schemas/QueryValueWidgetComparisonDirectionality"
description: Which direction of change is considered an improvement, determining the indicator color.
duration:
$ref: "#/components/schemas/ComparisonDuration"
description: The historical period to compare the current value against.
type:
$ref: "#/components/schemas/QueryValueWidgetComparisonType"
description: "How the delta is shown: as an absolute difference, a percentage, or both."
required:
- duration
type: object
QueryValueWidgetComparisonDirectionality:
default: neutral
description: "Color-coding direction: `increase_better` (green on rise), `decrease_better` (green on drop), or `neutral` (no color)."
enum:
- increase_better
- decrease_better
- neutral
type: string
x-enum-varnames:
- INCREASE_BETTER
- DECREASE_BETTER
- NEUTRAL
QueryValueWidgetComparisonType:
default: absolute
description: "How the delta is expressed: `absolute` (raw difference), `relative` (percentage), or `both`."
enum:
- absolute
- relative
- both
type: string
x-enum-varnames:
- ABSOLUTE
- RELATIVE
- BOTH
QueryValueWidgetDefinition:
description: Query values display the current value of a given metric, APM, or log query.
properties:
Expand Down Expand Up @@ -12206,6 +12289,9 @@ components:
$ref: "#/components/schemas/LogQueryDefinition"
deprecated: true
description: Deprecated - Use `queries` and `formulas` instead.
comparison:
$ref: "#/components/schemas/QueryValueWidgetComparison"
description: Displays a change indicator showing a delta against a historical baseline.
conditional_formats:
description: List of conditional formats.
items:
Expand Down
Loading