1 | import { IKubernetesRESTClient, ListOptions, PatchKind, WatchOptions, WatchResult } from "./client";
|
2 | import { Registry } from "prom-client";
|
3 | import { DeleteOptions, WatchEvent } from "./types/meta/v1";
|
4 | import { MetadataObject } from "./types/meta";
|
5 | export declare class MonitoringKubernetesRESTClient implements IKubernetesRESTClient {
|
6 | private inner;
|
7 | private requestLatencies;
|
8 | private errorCount;
|
9 | constructor(inner: IKubernetesRESTClient, registry: Registry);
|
10 | private wrap;
|
11 | post<R>(url: string, body: any): Promise<R>;
|
12 | put<R>(url: string, body: any): Promise<R>;
|
13 | delete<R>(url: string, opts?: DeleteOptions, queryParams?: {
|
14 | [p: string]: string;
|
15 | }, body?: any): Promise<R>;
|
16 | get<R>(url: string, opts?: ListOptions): Promise<R | undefined>;
|
17 | patch<R = any>(url: string, body: any, patchKind: PatchKind): Promise<R>;
|
18 | watch<R extends MetadataObject>(url: string, onUpdate: (o: WatchEvent<R>) => any, onError: (err: any) => any, opts?: WatchOptions): Promise<WatchResult>;
|
19 | }
|