zterton-status/src/typs/clouds/index.ts

86 lines
1.7 KiB
TypeScript
Raw Normal View History

2021-10-19 20:44:06 +00:00
export const enum LanguageType {
en = 'en',
es = 'es',
None = 'None',
}
2021-10-14 14:42:52 +00:00
export interface StatusItemType {
title: string
2021-10-19 20:44:06 +00:00
content: string
lang: LanguageType
datetime: string
2021-10-14 14:42:52 +00:00
isOpen: boolean
}
export interface StatusItemDataType {
[key: string]: any
title: string
2021-10-19 20:44:06 +00:00
content: string
lang: LanguageType
datetime: string
2021-10-14 14:42:52 +00:00
}
export const enum ReqType {
tcp = 'tcp',
https = 'https',
NotSet = 'NotSet',
}
export const enum CriticalType {
yes = 'yes',
cloud = 'cloud',
group = 'group',
ifresized = 'ifresized',
no = 'no',
}
export interface SrvcType {
name: string
path: string
req: ReqType
target: string
liveness: string
critical: CriticalType
}
export interface SrvcInfoType {
[key: string]: any
name: string
info: string
srvc: SrvcType
}
export interface CloudGroupItemType {
[key: string]: any
hostname: string
tsksrvcs: SrvcType[]
appsrvcs: SrvcType[]
}
export interface CloudGroupServcType {
[key: string]: any
hostname: string
name: string
tsksrvcs: SrvcInfoElemType[]
appsrvcs: SrvcInfoElemType[]
}
2021-10-19 20:44:06 +00:00
export interface CloudDataCheck {
[key: string]: any
name: string
apps: Map<string, Map<string, CloudGroupServcType>>
cloud: Map<string, Map<string, CloudGroupServcType>>
infos: StatusItemType[]
}
export interface CloudOptionType {
name: string
option: number
}
export interface CloudGroupDataType {
[key: string]: CloudGroupItemType[] | any
}
2021-10-14 14:42:52 +00:00
export interface ResCloudDataCheck {
2021-10-19 20:44:06 +00:00
[key: string]: any
name: string
cloud: CloudGroupDataType
apps: CloudGroupDataType
// cloud: CloudGroupSrvcType
// statusentries: StatusItemDataType[]
2021-10-14 14:42:52 +00:00
}
2021-10-19 20:44:06 +00:00
export interface ResCloudDataCheckDefs {
[key: string]: any
check: ResCloudDataCheck[]
defs: any
}