changedInput schema / properties / rules / items / properties / allocation / oneOf
Previous value: -[
- {
- "properties": {
- "allocationType": {
- "const": "dimensionValue",
- "type": "string"
- },
- "dimensionValue": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "allocationType",
- "dimensionValue"
- ],
- "type": "object"
- },
- {
- "properties": {
- "allocationType": {
- "const": "existingColumn",
- "type": "string"
- },
- "existingColumn": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "allocationType",
- "existingColumn"
- ],
- "type": "object"
- },
- {
- "properties": {
- "allocationType": {
- "const": "splitCost",
- "type": "string"
- },
- "reAllocationParams": {
- "discriminator": {
- "propertyName": "type"
- },
- "oneOf": [
- {
- "properties": {
- "partitions": {
- "items": {
- "properties": {
- "label": {
- "minLength": 1,
- "type": "string"
- },
- "weight": {
- "type": "number"
- }
- },
- "required": [
- "label",
- "weight"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "type": {
- "const": "custom",
- "type": "string"
- }
- },
- "required": [
- "type",
- "partitions"
- ],
- "type": "object"
- }
- ]
- }
- },
- "required": [
- "allocationType",
- "reAllocationParams"
- ],
- "type": "object"
- },
- {
- "properties": {
- "allocationType": {
- "const": "telemetry",
- "type": "string"
- },
- "datasource": {
- "minLength": 1,
- "type": "string"
- },
- "externalMetric": {
- "properties": {
- "aggregator": {
- "enum": [
- "SUM",
- "AVG",
- "MAX",
- "MIN"
- ],
- "type": "string"
- },
- "conditions": {
- "type": "string"
- },
- "dateColumn": {
- "minLength": 1,
- "type": "string"
- },
- "gapFillingMethod": {
- "enum": [
- "ZERO",
- "FORWARD_FILL",
- "LINEAR_INTERPOLATION",
- "SPREAD"
- ],
- "type": "string"
- },
- "groupByFields": {
- "default": [],
- "items": {
- "minLength": 1,
- "type": "string"
- },
- "maxItems": 7,
- "type": "array"
- },
- "integrationId": {
- "description": "External metric integration ID from list_metrics(includeExternal: true).",
- "minLength": 1,
- "type": "string"
- },
- "metricColumn": {
- "minLength": 1,
- "type": "string"
- },
- "metricName": {
- "default": "",
- "type": "string"
- },
- "provider": {
- "enum": [
- "tsuga",
- "bigquery",
- "datadog",
- "cloudwatch",
- "s3",
- "amplitude",
- "snowflake"
- ],
- "type": "string"
- },
- "query": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "provider",
- "integrationId"
- ],
- "type": "object"
- },
- "mappingParams": {
- "properties": {
- "mapping": {
- "additionalProperties": {
- "type": "string"
- },
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- }
- },
- "required": [
- "mapping"
- ],
- "type": "object"
- },
- "mappingType": {
- "enum": [
- "mapping",
- "regexMapping",
- "identity"
- ],
- "type": "string"
- },
- "regexTransformation": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "allocationType",
- "mappingType",
- "mappingParams"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "allocationType": {
+ "const": "dimensionValue",
+ "type": "string"
+ },
+ "dimensionValue": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "allocationType",
+ "dimensionValue"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "allocationType": {
+ "const": "existingColumn",
+ "type": "string"
+ },
+ "existingColumn": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "allocationType",
+ "existingColumn"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "allocationType": {
+ "const": "splitCost",
+ "type": "string"
+ },
+ "reAllocationParams": {
+ "discriminator": {
+ "propertyName": "type"
+ },
+ "oneOf": [
+ {
+ "properties": {
+ "partitions": {
+ "items": {
+ "properties": {
+ "label": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "weight": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "label",
+ "weight"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "type": {
+ "const": "custom",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "partitions"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+ },
+ "required": [
+ "allocationType",
+ "reAllocationParams"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "allocationType": {
+ "const": "telemetry",
+ "type": "string"
+ },
+ "datasource": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "externalMetric": {
+ "properties": {
+ "aggregator": {
+ "enum": [
+ "SUM",
+ "AVG",
+ "MAX",
+ "MIN"
+ ],
+ "type": "string"
+ },
+ "conditions": {
+ "type": "string"
+ },
+ "dateColumn": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "gapFillingMethod": {
+ "enum": [
+ "ZERO",
+ "FORWARD_FILL",
+ "LINEAR_INTERPOLATION",
+ "SPREAD"
+ ],
+ "type": "string"
+ },
+ "groupByFields": {
+ "default": [],
+ "items": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxItems": 7,
+ "type": "array"
+ },
+ "integrationId": {
+ "description": "External metric integration ID from list_metrics(includeExternal: true).",
+ "minLength": 1,
+ "type": "string"
+ },
+ "metricColumn": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "metricName": {
+ "default": "",
+ "type": "string"
+ },
+ "provider": {
+ "enum": [
+ "tsuga",
+ "bigquery",
+ "datadog",
+ "cloudwatch",
+ "s3",
+ "amplitude",
+ "snowflake",
+ "cloudmonitoring"
+ ],
+ "type": "string"
+ },
+ "query": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "provider",
+ "integrationId"
+ ],
+ "type": "object"
+ },
+ "mappingParams": {
+ "properties": {
+ "mapping": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "mapping"
+ ],
+ "type": "object"
+ },
+ "mappingType": {
+ "enum": [
+ "mapping",
+ "regexMapping",
+ "identity"
+ ],
+ "type": "string"
+ },
+ "regexTransformation": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "allocationType",
+ "mappingType",
+ "mappingParams"
+ ],
+ "type": "object"
+ }
+]