BackendSrvRequest type

BackendSrvRequest type

Used to initiate a remote call via the BackendSrv

Signature

  1. export declare type BackendSrvRequest = {
  2. url: string;
  3. retry?: number;
  4. headers?: Record<string, any>;
  5. method?: string;
  6. showSuccessAlert?: boolean;
  7. showErrorAlert?: boolean;
  8. requestId?: string;
  9. hideFromInspector?: boolean;
  10. data?: any;
  11. params?: Record<string, any>;
  12. responseType?: 'json' | 'text' | 'arraybuffer' | 'blob';
  13. credentials?: RequestCredentials;
  14. withCredentials?: boolean;
  15. };

Import

  1. import { BackendSrvRequest } from '@grafana/runtime';