PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/avalanche/dist/apis/metrics

Просмотр файла: api.d.ts

/**
 * @packageDocumentation
 * @module API-Metrics
 */
import AvalancheCore from "../../avalanche";
import { RESTAPI } from "../../common/restapi";
import { AxiosRequestConfig } from "axios";
/**
 * Class for interacting with a node API that is using the node's MetricsApi.
 *
 * @category RPCAPIs
 *
 * @remarks This extends the [[RESTAPI]] class. This class should not be directly called. Instead, use the [[Avalanche.addAPI]] function to register this interface with Avalanche.
 */
export declare class MetricsAPI extends RESTAPI {
    protected axConf: () => AxiosRequestConfig;
    /**
     *
     * @returns Promise for an object containing the metrics response
     */
    getMetrics: () => Promise<string>;
    /**
     * This class should not be instantiated directly. Instead use the [[Avalanche.addAPI]] method.
     *
     * @param core A reference to the Avalanche class
     * @param baseURL Defaults to the string "/ext/metrics" as the path to rpc's baseurl
     */
    constructor(core: AvalancheCore, baseURL?: string);
}
//# sourceMappingURL=api.d.ts.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!