mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prometheus: refactor to DataFrame (#27737)
* Add typing to prometheus response * Refactor result_transformer to return DataFrame * Refactor + test fixes * Fix Prometheus data source test * Modify heatmap function + add back tests * Update performInstantQuery return type * Remove duplicate code from result_transformer * Address review comments * Update metric labels retrival logic to be safer
This commit is contained in:
@@ -108,7 +108,7 @@ export interface FetchErrorDataProps {
|
||||
export interface FetchError<T extends FetchErrorDataProps = any> {
|
||||
status: number;
|
||||
statusText?: string;
|
||||
data: T | string;
|
||||
data: T;
|
||||
cancelled?: boolean;
|
||||
isHandled?: boolean;
|
||||
config: BackendSrvRequest;
|
||||
|
||||
Reference in New Issue
Block a user