diff --git a/x-pack/plugins/observability/public/typings/data_handler/index.d.ts b/x-pack/plugins/observability/public/typings/data_handler/index.d.ts index 4de987408f978..7b9aa07386544 100644 --- a/x-pack/plugins/observability/public/typings/data_handler/index.d.ts +++ b/x-pack/plugins/observability/public/typings/data_handler/index.d.ts @@ -26,28 +26,31 @@ interface Series { label: string; coordinates: Coordinates[]; color?: string; - key?: string; } interface FetchDataResponse { title: string; appLink: string; - series: Series[]; } interface LogsFetchDataResponse extends FetchDataResponse { stats: Record; + series: Record; } interface MetricsFetchDataResponse extends FetchDataResponse { stats: { - hots: Numeral; + hosts: Numeral; cpu: Percentage; memory: Percentage; disk: Percentage; inboundTraffic: Bytes; outboundTraffic: Bytes; }; + series: { + inboundTraffic: Series; + outboundTraffic: Series; + }; } interface UptimeFetchDataResponse extends FetchDataResponse { @@ -56,13 +59,19 @@ interface UptimeFetchDataResponse extends FetchDataResponse { up: Numeral; down: Numeral; }; + series: { + up: Series; + down: Series; + }; } interface ApmFetchDataResponse extends FetchDataResponse { stats: { services: Numeral; transactions: Numeral; - errorRate?: Percentage; + }; + series: { + transactions: Series; }; }