changedOutput schema / properties / data_health / anyOf
Previous value: -[
- {
- "description": "Data-quality state behind one result (not a medical or statistical confidence score). status is one of\nVALID, VALID_WITH_GAPS, INSUFFICIENT_DATA, STALE, IMPORT_INCOMPLETE; reasons lists every condition that\napplies. See data_health.compose_data_health for how it is decided.",
- "properties": {
- "completeness": {
- "properties": {
- "coverage_ratio": {
- "type": "number"
- },
- "expected_days": {
- "type": "integer"
- },
- "missing_days": {
- "type": "integer"
- },
- "observed_days": {
- "type": "integer"
- }
- },
- "required": [
- "expected_days",
- "observed_days",
- "coverage_ratio",
- "missing_days"
- ],
- "type": "object"
- },
- "coverage": {
- "properties": {
- "end": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "requested_end": {
- "type": "string"
- },
- "requested_start": {
- "type": "string"
- },
- "start": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- }
- },
- "required": [
- "requested_start",
- "requested_end"
- ],
- "type": "object"
- },
- "freshness": {
- "properties": {
- "age_days": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Days from the latest observation to the end of the requested window."
- },
- "dataset_days_behind": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Days from the dataset's latest data (any metric) to today."
- },
- "latest_data": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- }
- },
- "type": "object"
- },
- "gaps": {
- "items": {
- "properties": {
- "days": {
- "type": "integer"
- },
- "end": {
- "type": "string"
- },
- "start": {
- "type": "string"
- }
- },
- "required": [
- "start",
- "end",
- "days"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "last_import": {
- "anyOf": [
- {
- "properties": {
- "finished_at": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "importer": {
- "type": "string"
- },
- "source_file": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "status": {
- "type": "string"
- }
- },
- "required": [
- "importer",
- "status"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "last_successful_import": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "observations": {
- "description": "Number of daily values the result is computed from.",
- "type": "integer"
- },
- "reasons": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "status": {
- "type": "string"
- }
- },
- "required": [
- "status",
- "reasons",
- "freshness",
- "coverage",
- "completeness",
- "gaps",
- "observations"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
-]New value: +[
+ {
+ "description": "Data-quality state behind one result (not a medical or statistical confidence score). status is one of\nVALID, VALID_WITH_GAPS, MIXED_SOURCES, INSUFFICIENT_DATA, STALE, IMPORT_INCOMPLETE; reasons lists every\ncondition that\napplies. See data_health.compose_data_health for how it is decided.",
+ "properties": {
+ "completeness": {
+ "properties": {
+ "coverage_ratio": {
+ "type": "number"
+ },
+ "expected_days": {
+ "type": "integer"
+ },
+ "missing_days": {
+ "type": "integer"
+ },
+ "observed_days": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "expected_days",
+ "observed_days",
+ "coverage_ratio",
+ "missing_days"
+ ],
+ "type": "object"
+ },
+ "coverage": {
+ "properties": {
+ "end": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "requested_end": {
+ "type": "string"
+ },
+ "requested_start": {
+ "type": "string"
+ },
+ "start": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ }
+ },
+ "required": [
+ "requested_start",
+ "requested_end"
+ ],
+ "type": "object"
+ },
+ "freshness": {
+ "properties": {
+ "age_days": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Days from the latest observation to the end of the requested window."
+ },
+ "dataset_days_behind": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Days from the dataset's latest data (any metric) to today."
+ },
+ "latest_data": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ }
+ },
+ "type": "object"
+ },
+ "gaps": {
+ "items": {
+ "properties": {
+ "days": {
+ "type": "integer"
+ },
+ "end": {
+ "type": "string"
+ },
+ "start": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "start",
+ "end",
+ "days"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "last_import": {
+ "anyOf": [
+ {
+ "properties": {
+ "finished_at": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "importer": {
+ "type": "string"
+ },
+ "source_file": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "status": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "importer",
+ "status"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "last_successful_import": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "observations": {
+ "description": "Number of daily values the result is computed from.",
+ "type": "integer"
+ },
+ "reasons": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "status": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "reasons",
+ "freshness",
+ "coverage",
+ "completeness",
+ "gaps",
+ "observations"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+]