fix(core): update
This commit is contained in:
22
ts/data/incident.ts
Normal file
22
ts/data/incident.ts
Normal file
@ -0,0 +1,22 @@
|
||||
import * as plugins from '../ul-interfaces.plugins';
|
||||
|
||||
export interface IIncident {
|
||||
timestamp: number;
|
||||
firstResponseTimestamp?: number;
|
||||
/**
|
||||
* indicates
|
||||
*/
|
||||
status: 'discovered' | 'investigating' | 'fixing' | 'fixImplemented' | 'watching' | 'resolved';
|
||||
creationMode: 'monitor' | 'manual';
|
||||
assignedUserId?: string;
|
||||
postMortemLink?: string;
|
||||
|
||||
updates: {
|
||||
markdownText: string;
|
||||
type: 'comment' | 'manualUpdate' | 'automaticUpdate'
|
||||
}[];
|
||||
|
||||
justForLooks: {
|
||||
isoTimestamp: string;
|
||||
}
|
||||
}
|
1
ts/data/index.ts
Normal file
1
ts/data/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from './incident';
|
@ -1,3 +1,4 @@
|
||||
import * as requests from './requests';
|
||||
import * as data from './data';
|
||||
|
||||
export { requests };
|
||||
export { requests, data };
|
||||
|
@ -1,3 +1,3 @@
|
||||
import * as checkRequests from './ul-interfaces.checkrequest';
|
||||
import * as checkRequests from './requests.checks';
|
||||
|
||||
export { checkRequests };
|
||||
|
@ -2,7 +2,11 @@ import * as plugins from '../ul-interfaces.plugins';
|
||||
|
||||
export type TCheckResultStatus = 'ok' | 'not ok' | 'timed out';
|
||||
|
||||
export interface IRequest_PageCheck_PWA {
|
||||
export interface IRequest_PageCheck_PWA
|
||||
extends plugins.typedRequestInterfaces.implementsTR<
|
||||
plugins.typedRequestInterfaces.ITypedRequest,
|
||||
IRequest_PageCheck_PWA
|
||||
> {
|
||||
method: 'pwa';
|
||||
request: {
|
||||
intervalMs: number;
|
||||
@ -21,7 +25,11 @@ export interface IRequest_PageCheck_PWA {
|
||||
};
|
||||
}
|
||||
|
||||
export interface IRequest_PageCheck_Function {
|
||||
export interface IRequest_PageCheck_Function
|
||||
extends plugins.typedRequestInterfaces.implementsTR<
|
||||
plugins.typedRequestInterfaces.ITypedRequest,
|
||||
IRequest_PageCheck_Function
|
||||
> {
|
||||
method: 'function';
|
||||
request: {
|
||||
intervalMs: number;
|
||||
@ -38,7 +46,11 @@ export interface IRequest_PageCheck_Function {
|
||||
};
|
||||
}
|
||||
|
||||
export interface IRequest_PageCheck_Assumption {
|
||||
export interface IRequest_PageCheck_Assumption
|
||||
extends plugins.typedRequestInterfaces.implementsTR<
|
||||
plugins.typedRequestInterfaces.ITypedRequest,
|
||||
IRequest_PageCheck_Assumption
|
||||
> {
|
||||
method: 'assumption';
|
||||
request: {
|
||||
intervalMs: number;
|
16
ts/requests/requests.incidents.ts
Normal file
16
ts/requests/requests.incidents.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import * as plugins from '../ul-interfaces.plugins';
|
||||
import * as data from '../data';
|
||||
|
||||
export interface IRequest_Incidents_Get extends plugins.typedRequestInterfaces.implementsTR<
|
||||
plugins.typedRequestInterfaces.ITypedRequest,
|
||||
IRequest_Incidents_Get
|
||||
> {
|
||||
method: 'getIncidents',
|
||||
request: {
|
||||
userToken?: string;
|
||||
};
|
||||
response: {
|
||||
currentIncidents: data.IIncident[];
|
||||
pastIncidents: data.IIncident[];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user