interfaces/ts/requests/requests.checks.ts

80 lines
1.7 KiB
TypeScript
Raw Normal View History

2022-07-16 15:45:10 +00:00
import * as plugins from '../ul-interfaces.plugins.js';
2019-11-30 16:25:24 +00:00
export type TCheckResultStatus = 'ok' | 'not ok' | 'timed out';
2021-09-26 14:11:41 +00:00
export interface IRequest_PageCheck_PWA
extends plugins.typedRequestInterfaces.implementsTR<
plugins.typedRequestInterfaces.ITypedRequest,
IRequest_PageCheck_PWA
> {
2019-11-30 16:25:24 +00:00
method: 'pwa';
request: {
2021-03-08 17:30:04 +00:00
intervalMs: number;
2019-11-30 16:25:24 +00:00
domain: string;
};
response: {
timeStarted: number;
timeEnded: number;
duration: number;
status: TCheckResultStatus;
data: {
lhr: any;
reports: any[];
};
checkLog: string[];
};
}
2021-09-26 14:11:41 +00:00
export interface IRequest_PageCheck_Function
extends plugins.typedRequestInterfaces.implementsTR<
plugins.typedRequestInterfaces.ITypedRequest,
IRequest_PageCheck_Function
> {
2019-11-30 21:17:18 +00:00
method: 'function';
2019-11-30 16:25:24 +00:00
request: {
2021-03-08 17:30:04 +00:00
intervalMs: number;
2019-11-30 16:25:24 +00:00
domain: string;
functionDef: string;
};
response: {
timeStarted: number;
timeEnded: number;
duration: number;
status: TCheckResultStatus;
data: any;
checkLog: string[];
};
}
2021-09-26 14:11:41 +00:00
export interface IRequest_PageCheck_Assumption
extends plugins.typedRequestInterfaces.implementsTR<
plugins.typedRequestInterfaces.ITypedRequest,
IRequest_PageCheck_Assumption
> {
2019-11-30 16:25:24 +00:00
method: 'assumption';
request: {
2021-03-08 17:30:04 +00:00
intervalMs: number;
2019-11-30 16:25:24 +00:00
domain: string;
title?: string;
statusCode?: string;
description?: string;
dnsRecordMx?: string;
dnsRecordTxt?: string;
};
response: {
timeStarted: number;
timeEnded: number;
duration: number;
status: TCheckResultStatus;
data: {
domain: string;
title?: string;
statusCode?: string;
description?: string;
dnsRecordMx?: string;
dnsRecordTxt?: string;
};
checkLog: string[];
};
2021-03-08 17:30:04 +00:00
}