Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
BackendSrvRequest type
BackendSrvRequest type
Used to initiate a remote call via the BackendSrv
Signature
export declare type BackendSrvRequest = {
url: string;
retry?: number;
headers?: Record<string, any>;
method?: string;
showSuccessAlert?: boolean;
showErrorAlert?: boolean;
requestId?: string;
hideFromInspector?: boolean;
data?: any;
params?: Record<string, any>;
responseType?: 'json' | 'text' | 'arraybuffer' | 'blob';
credentials?: RequestCredentials;
withCredentials?: boolean;
};
Import
import { BackendSrvRequest } from '@grafana/runtime';