diff --git a/contracts/cloud-diff.yml b/contracts/cloud-diff.yml index 58eca3485..6a7a8ede0 100644 --- a/contracts/cloud-diff.yml +++ b/contracts/cloud-diff.yml @@ -1406,6 +1406,16 @@ paths: type: array items: $ref: '#/paths/~1dashboards/post/responses/201/content/application~1json/schema/oneOf/1/allOf/1/properties/cells/items/allOf/1/properties/properties/oneOf/0/properties/colors/items' + colorMapping: + description: An object that contains information about the color mapping + type: object + additionalProperties: + type: int + example: + series_id_1: 0 + series_id_2: 1 + measurement_birdmigration_europe: 0 + configcat_deployments-autopromotionblocker: 0 shape: type: string enum: diff --git a/contracts/cloud.json b/contracts/cloud.json index 7c24a0efd..ed7afab35 100644 --- a/contracts/cloud.json +++ b/contracts/cloud.json @@ -13537,6 +13537,10 @@ "$ref": "#/components/schemas/DashboardColor" } }, + "colorMapping": { + "description": "An object that contains information about the color mapping", + "$ref": "#/components/schemas/ColorMapping" + }, "shape": { "type": "string", "enum": [ @@ -17439,6 +17443,19 @@ "explicit" ] }, + "ColorMapping": { + "type": "object", + "description": "A color mapping is an object that maps time series data to a UI color scheme to allow the UI to render graphs consistent colors across reloads.", + "additionalProperties": { + "type": "int" + }, + "example": { + "series_id_1": 0, + "series_id_2": 1, + "measurement_birdmigration_europe": 0, + "configcat_deployments-autopromotionblocker": 0 + } + }, "DemoDataBucket": { "properties": { "links": { diff --git a/contracts/cloud.yml b/contracts/cloud.yml index d9a9dc9a1..158984633 100644 --- a/contracts/cloud.yml +++ b/contracts/cloud.yml @@ -8615,6 +8615,9 @@ components: type: array items: $ref: '#/components/schemas/DashboardColor' + colorMapping: + description: An object that contains information about the color mapping + $ref: '#/components/schemas/ColorMapping' shape: type: string enum: @@ -11240,6 +11243,16 @@ components: enum: - implicit - explicit + ColorMapping: + type: object + description: A color mapping is an object that maps time series data to a UI color scheme to allow the UI to render graphs consistent colors across reloads. + additionalProperties: + type: int + example: + series_id_1: 0 + series_id_2: 1 + measurement_birdmigration_europe: 0 + configcat_deployments-autopromotionblocker: 0 DemoDataBucket: properties: links: diff --git a/contracts/common.yml b/contracts/common.yml index 2d1f54685..64a1a1ead 100644 --- a/contracts/common.yml +++ b/contracts/common.yml @@ -7468,6 +7468,9 @@ components: type: array items: $ref: '#/components/schemas/DashboardColor' + colorMapping: + description: An object that contains information about the color mapping + $ref: '#/components/schemas/ColorMapping' shape: type: string enum: @@ -10093,6 +10096,16 @@ components: enum: - implicit - explicit + ColorMapping: + type: object + description: A color mapping is an object that maps time series data to a UI color scheme to allow the UI to render graphs consistent colors across reloads. + additionalProperties: + type: int + example: + series_id_1: 0 + series_id_2: 1 + measurement_birdmigration_europe: 0 + configcat_deployments-autopromotionblocker: 0 responses: ServerError: description: Non 2XX error response from server. diff --git a/contracts/oss-diff.yml b/contracts/oss-diff.yml index 30f7a5c65..26b5c2ed8 100644 --- a/contracts/oss-diff.yml +++ b/contracts/oss-diff.yml @@ -2363,6 +2363,16 @@ paths: type: array items: $ref: '#/paths/~1dashboards/post/responses/201/content/application~1json/schema/oneOf/1/allOf/1/properties/cells/items/allOf/1/properties/properties/oneOf/0/properties/colors/items' + colorMapping: + description: An object that contains information about the color mapping + type: object + additionalProperties: + type: int + example: + series_id_1: 0 + series_id_2: 1 + measurement_birdmigration_europe: 0 + configcat_deployments-autopromotionblocker: 0 shape: type: string enum: diff --git a/contracts/oss.json b/contracts/oss.json index 7dae4ac47..b1267348b 100644 --- a/contracts/oss.json +++ b/contracts/oss.json @@ -14880,6 +14880,10 @@ "$ref": "#/components/schemas/DashboardColor" } }, + "colorMapping": { + "description": "An object that contains information about the color mapping", + "$ref": "#/components/schemas/ColorMapping" + }, "shape": { "type": "string", "enum": [ @@ -18782,6 +18786,19 @@ "explicit" ] }, + "ColorMapping": { + "type": "object", + "description": "A color mapping is an object that maps time series data to a UI color scheme to allow the UI to render graphs consistent colors across reloads.", + "additionalProperties": { + "type": "int" + }, + "example": { + "series_id_1": 0, + "series_id_2": 1, + "measurement_birdmigration_europe": 0, + "configcat_deployments-autopromotionblocker": 0 + } + }, "Authorization": { "required": [ "orgID", diff --git a/contracts/oss.yml b/contracts/oss.yml index 23bcf2218..4789b034f 100644 --- a/contracts/oss.yml +++ b/contracts/oss.yml @@ -9427,6 +9427,9 @@ components: type: array items: $ref: '#/components/schemas/DashboardColor' + colorMapping: + description: An object that contains information about the color mapping + $ref: '#/components/schemas/ColorMapping' shape: type: string enum: @@ -12052,6 +12055,16 @@ components: enum: - implicit - explicit + ColorMapping: + type: object + description: A color mapping is an object that maps time series data to a UI color scheme to allow the UI to render graphs consistent colors across reloads. + additionalProperties: + type: int + example: + series_id_1: 0 + series_id_2: 1 + measurement_birdmigration_europe: 0 + configcat_deployments-autopromotionblocker: 0 Authorization: required: - orgID diff --git a/contracts/ref/cloud.yml b/contracts/ref/cloud.yml index ed8091a97..4028f0cb3 100644 --- a/contracts/ref/cloud.yml +++ b/contracts/ref/cloud.yml @@ -723,6 +723,17 @@ components: type: array links: $ref: '#/components/schemas/Links' + ColorMapping: + additionalProperties: + type: int + description: A color mapping is an object that maps time series data to a UI + color scheme to allow the UI to render graphs consistent colors across reloads. + example: + configcat_deployments-autopromotionblocker: 0 + measurement_birdmigration_europe: 0 + series_id_1: 0 + series_id_2: 1 + type: object ColumnDataType: enum: - integer @@ -5764,6 +5775,9 @@ components: properties: axes: $ref: '#/components/schemas/Axes' + colorMapping: + $ref: '#/components/schemas/ColorMapping' + description: An object that contains information about the color mapping colors: description: Colors define color encoding of data into a visualization items: diff --git a/contracts/ref/oss.yml b/contracts/ref/oss.yml index 9e53dcb59..6942b1b9e 100644 --- a/contracts/ref/oss.yml +++ b/contracts/ref/oss.yml @@ -788,6 +788,17 @@ components: type: array links: $ref: '#/components/schemas/Links' + ColorMapping: + additionalProperties: + type: int + description: A color mapping is an object that maps time series data to a UI + color scheme to allow the UI to render graphs consistent colors across reloads. + example: + configcat_deployments-autopromotionblocker: 0 + measurement_birdmigration_europe: 0 + series_id_1: 0 + series_id_2: 1 + type: object ConditionalExpression: description: Selects one of two expressions, `Alternate` or `Consequent`, depending on a third boolean expression, `Test` @@ -5687,6 +5698,9 @@ components: properties: axes: $ref: '#/components/schemas/Axes' + colorMapping: + $ref: '#/components/schemas/ColorMapping' + description: An object that contains information about the color mapping colors: description: Colors define color encoding of data into a visualization items: diff --git a/src/common/_schemas.yml b/src/common/_schemas.yml index 8235aa968..27e8e9624 100644 --- a/src/common/_schemas.yml +++ b/src/common/_schemas.yml @@ -448,3 +448,5 @@ $ref: "./common/schemas/DBRPGet.yml" SchemaType: $ref: "./common/schemas/SchemaType.yml" + ColorMapping: + $ref: "./common/schemas/ColorMapping.yml" diff --git a/src/common/schemas/ColorMapping.yml b/src/common/schemas/ColorMapping.yml new file mode 100644 index 000000000..3f63236d1 --- /dev/null +++ b/src/common/schemas/ColorMapping.yml @@ -0,0 +1,9 @@ + type: object + description: A color mapping is an object that maps time series data to a UI color scheme to allow the UI to render graphs consistent colors across reloads. + additionalProperties: + type: int + example: + series_id_1: 0 + series_id_2: 1 + measurement_birdmigration_europe: 0 + configcat_deployments-autopromotionblocker: 0 diff --git a/src/common/schemas/XYViewProperties.yml b/src/common/schemas/XYViewProperties.yml index fde5bfa21..00b77c297 100644 --- a/src/common/schemas/XYViewProperties.yml +++ b/src/common/schemas/XYViewProperties.yml @@ -24,6 +24,9 @@ type: array items: $ref: "./DashboardColor.yml" + colorMapping: + description: An object that contains information about the color mapping + $ref: "./ColorMapping.yml" shape: type: string enum: ["chronograf-v2"]