Last active
June 9, 2022 11:02
-
-
Save hosembafer/a34cbe9ed099bc53612822da5204fa8b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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