Skip to content

Instantly share code, notes, and snippets.

@hosembafer
Last active June 9, 2022 11:02
Show Gist options
  • Save hosembafer/a34cbe9ed099bc53612822da5204fa8b to your computer and use it in GitHub Desktop.
Save hosembafer/a34cbe9ed099bc53612822da5204fa8b to your computer and use it in GitHub Desktop.
enum OutageType {
INCIDENT,
MAINTENANCE,
}
type Outage = {
type: OutageType;
services?: string[];
resolved?: boolean;
force?: boolean;
message: string;
regions?: string[];
fromDate?: Date;
toDate?: Date;
resolvedDate?: Date;
}
const incident: Outage = {
type: OutageType.INCIDENT,
message: "Our team is working to resolve recording issues as soon as possible.",
fromDate: "2022-06-07 12:00",
toDate: "2022-06-07 15:30",
};
const maintenance: Outage = {
type: OutageType.MAINTENANCE,
message: "We are performing our weekly scheduled updates to continuously deliver new goodies for our loved ones.",
fromDate: "2022-06-07 14:00",
toDate: "2022-06-07 16:00",
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment