updown.io
Version:
An updown.io API client
18 lines (17 loc) • 605 B
TypeScript
import type { APIClient } from '@ffflorian/api-client';
import type { Nodes } from '../interfaces';
export declare class NodesAPI {
private readonly apiClient;
constructor(apiClient: APIClient);
/** List all updown.io monitoring nodes IPv4 addresses. */
getIpv4Nodes(): Promise<string[]>;
/** List all updown.io monitoring nodes IPv6 addresses. */
getIpv6Nodes(): Promise<string[]>;
/** List all updown.io monitoring nodes. */
getNodes(): Promise<Nodes>;
/**
* Set a new API URL.
* @param newURL The new API url
*/
setApiUrl(newURL: string): void;
}