Thanks for your interest in synthetics! While there's no specific documentation about the monitor.use() interface, we usually rely on IDE auto-completion together with TS types:
export type MonitorConfig = {
id?: string;
name?: string;
type?: string;
tags?: string[];
schedule?: typeof ALLOWED_SCHEDULES[number];
enabled?: boolean;
locations?: SyntheticsLocationsType[];
privateLocations?: string[];
/**
* @deprecated This option is ignored.
* Network throttling via chrome devtools is ignored at the moment.
* See https://github.com/elastic/synthetics/blob/main/docs/throttling.md for more details.
*/
throttling?: boolean | ThrottlingOptions;
screenshot?: ScreenshotOptions;
params?: Params;
playwrightOptions?: PlaywrightOptions;
alert?: AlertConfig;
/**
* By default, the monitor will be retested on failure
*/
retestOnFailure?: boolean;
};
We will consider improving our documentation for future releases.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.