@backstage-community/plugin-ilert 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/ILertIcon.esm.js +61 -0
- package/dist/ILertIcon.esm.js.map +1 -0
- package/dist/api/client.esm.js +395 -0
- package/dist/api/client.esm.js.map +1 -0
- package/dist/components/Alert/AlertActionsMenu.esm.js +142 -0
- package/dist/components/Alert/AlertActionsMenu.esm.js.map +1 -0
- package/dist/components/Alert/AlertAssignModal.esm.js +147 -0
- package/dist/components/Alert/AlertAssignModal.esm.js.map +1 -0
- package/dist/components/Alert/AlertLink.esm.js +15 -0
- package/dist/components/Alert/AlertLink.esm.js.map +1 -0
- package/dist/components/Alert/AlertNewModal.esm.js +192 -0
- package/dist/components/Alert/AlertNewModal.esm.js.map +1 -0
- package/dist/components/AlertSource/AlertSourceLink.esm.js +49 -0
- package/dist/components/AlertSource/AlertSourceLink.esm.js.map +1 -0
- package/dist/components/AlertsPage/AlertsPage.esm.js +67 -0
- package/dist/components/AlertsPage/AlertsPage.esm.js.map +1 -0
- package/dist/components/AlertsPage/AlertsTable.esm.js +185 -0
- package/dist/components/AlertsPage/AlertsTable.esm.js.map +1 -0
- package/dist/components/AlertsPage/StatusChip.esm.js +47 -0
- package/dist/components/AlertsPage/StatusChip.esm.js.map +1 -0
- package/dist/components/AlertsPage/TableTitle.esm.js +74 -0
- package/dist/components/AlertsPage/TableTitle.esm.js.map +1 -0
- package/dist/components/Errors/MissingAuthorizationHeaderError.esm.js +24 -0
- package/dist/components/Errors/MissingAuthorizationHeaderError.esm.js.map +1 -0
- package/dist/components/ILertCard/ILertCard.esm.js +113 -0
- package/dist/components/ILertCard/ILertCard.esm.js.map +1 -0
- package/dist/components/ILertCard/ILertCardActionsHeader.esm.js +138 -0
- package/dist/components/ILertCard/ILertCardActionsHeader.esm.js.map +1 -0
- package/dist/components/ILertCard/ILertCardEmptyState.esm.js +57 -0
- package/dist/components/ILertCard/ILertCardEmptyState.esm.js.map +1 -0
- package/dist/components/ILertCard/ILertCardHeaderStatus.esm.js +29 -0
- package/dist/components/ILertCard/ILertCardHeaderStatus.esm.js.map +1 -0
- package/dist/components/ILertCard/ILertCardMaintenanceModal.esm.js +101 -0
- package/dist/components/ILertCard/ILertCardMaintenanceModal.esm.js.map +1 -0
- package/dist/components/ILertCard/ILertCardOnCall.esm.js +78 -0
- package/dist/components/ILertCard/ILertCardOnCall.esm.js.map +1 -0
- package/dist/components/ILertCard/ILertCardOnCallEmptyState.esm.js +26 -0
- package/dist/components/ILertCard/ILertCardOnCallEmptyState.esm.js.map +1 -0
- package/dist/components/ILertCard/ILertCardOnCallItem.esm.js +109 -0
- package/dist/components/ILertCard/ILertCardOnCallItem.esm.js.map +1 -0
- package/dist/components/ILertCard/index.esm.js +2 -0
- package/dist/components/ILertCard/index.esm.js.map +1 -0
- package/dist/components/ILertPage/ILertPage.esm.js +48 -0
- package/dist/components/ILertPage/ILertPage.esm.js.map +1 -0
- package/dist/components/OnCallSchedulesPage/OnCallSchedulesGrid.esm.js +135 -0
- package/dist/components/OnCallSchedulesPage/OnCallSchedulesGrid.esm.js.map +1 -0
- package/dist/components/OnCallSchedulesPage/OnCallSchedulesPage.esm.js +27 -0
- package/dist/components/OnCallSchedulesPage/OnCallSchedulesPage.esm.js.map +1 -0
- package/dist/components/OnCallSchedulesPage/OnCallShiftItem.esm.js +63 -0
- package/dist/components/OnCallSchedulesPage/OnCallShiftItem.esm.js.map +1 -0
- package/dist/components/Service/ServiceActionsMenu.esm.js +47 -0
- package/dist/components/Service/ServiceActionsMenu.esm.js.map +1 -0
- package/dist/components/Service/ServiceLink.esm.js +15 -0
- package/dist/components/Service/ServiceLink.esm.js.map +1 -0
- package/dist/components/ServicesPage/ServicesPage.esm.js +32 -0
- package/dist/components/ServicesPage/ServicesPage.esm.js.map +1 -0
- package/dist/components/ServicesPage/ServicesTable.esm.js +99 -0
- package/dist/components/ServicesPage/ServicesTable.esm.js.map +1 -0
- package/dist/components/ServicesPage/StatusChip.esm.js +67 -0
- package/dist/components/ServicesPage/StatusChip.esm.js.map +1 -0
- package/dist/components/Shift/ShiftOverrideModal.esm.js +171 -0
- package/dist/components/Shift/ShiftOverrideModal.esm.js.map +1 -0
- package/dist/components/StatusPage/StatusPageActionsMenu.esm.js +50 -0
- package/dist/components/StatusPage/StatusPageActionsMenu.esm.js.map +1 -0
- package/dist/components/StatusPage/StatusPageLink.esm.js +17 -0
- package/dist/components/StatusPage/StatusPageLink.esm.js.map +1 -0
- package/dist/components/StatusPage/StatusPageURL.esm.js +18 -0
- package/dist/components/StatusPage/StatusPageURL.esm.js.map +1 -0
- package/dist/components/StatusPagePage/StatusChip.esm.js +67 -0
- package/dist/components/StatusPagePage/StatusChip.esm.js.map +1 -0
- package/dist/components/StatusPagePage/StatusPagesPage.esm.js +32 -0
- package/dist/components/StatusPagePage/StatusPagesPage.esm.js.map +1 -0
- package/dist/components/StatusPagePage/StatusPagesTable.esm.js +115 -0
- package/dist/components/StatusPagePage/StatusPagesTable.esm.js.map +1 -0
- package/dist/components/StatusPagePage/VisibilityChip.esm.js +37 -0
- package/dist/components/StatusPagePage/VisibilityChip.esm.js.map +1 -0
- package/dist/components/index.esm.js +3 -0
- package/dist/components/index.esm.js.map +1 -0
- package/dist/constants.esm.js +4 -0
- package/dist/constants.esm.js.map +1 -0
- package/dist/hooks/index.esm.js +13 -0
- package/dist/hooks/index.esm.js.map +1 -0
- package/dist/hooks/useAlertActions.esm.js +43 -0
- package/dist/hooks/useAlertActions.esm.js.map +1 -0
- package/dist/hooks/useAlertSource.esm.js +52 -0
- package/dist/hooks/useAlertSource.esm.js.map +1 -0
- package/dist/hooks/useAlertSourceOnCalls.esm.js +47 -0
- package/dist/hooks/useAlertSourceOnCalls.esm.js.map +1 -0
- package/dist/hooks/useAlerts.esm.js +128 -0
- package/dist/hooks/useAlerts.esm.js.map +1 -0
- package/dist/hooks/useAssignAlert.esm.js +53 -0
- package/dist/hooks/useAssignAlert.esm.js.map +1 -0
- package/dist/hooks/useNewAlert.esm.js +58 -0
- package/dist/hooks/useNewAlert.esm.js.map +1 -0
- package/dist/hooks/useOnCallSchedules.esm.js +42 -0
- package/dist/hooks/useOnCallSchedules.esm.js.map +1 -0
- package/dist/hooks/useServices.esm.js +70 -0
- package/dist/hooks/useServices.esm.js.map +1 -0
- package/dist/hooks/useShiftOverride.esm.js +60 -0
- package/dist/hooks/useShiftOverride.esm.js.map +1 -0
- package/dist/hooks/useStatusPages.esm.js +72 -0
- package/dist/hooks/useStatusPages.esm.js.map +1 -0
- package/dist/index.esm.js +7 -3346
- package/dist/index.esm.js.map +1 -1
- package/dist/plugin.esm.js +39 -0
- package/dist/plugin.esm.js.map +1 -0
- package/dist/route-refs.esm.js +8 -0
- package/dist/route-refs.esm.js.map +1 -0
- package/dist/types.esm.js +13 -0
- package/dist/types.esm.js.map +1 -0
- package/package.json +12 -8
- package/dist/esm/index-D2_Gjvjx.esm.js +0 -58
- package/dist/esm/index-D2_Gjvjx.esm.js.map +0 -1
- package/dist/esm/index-aory7UQN.esm.js +0 -58
- package/dist/esm/index-aory7UQN.esm.js.map +0 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ilertApiRef, ILertClient } from './api/client.esm.js';
|
|
2
|
+
import { iLertRouteRef } from './route-refs.esm.js';
|
|
3
|
+
import { createPlugin, createApiFactory, discoveryApiRef, configApiRef, fetchApiRef, createRoutableExtension, createComponentExtension } from '@backstage/core-plugin-api';
|
|
4
|
+
|
|
5
|
+
const ilertPlugin = createPlugin({
|
|
6
|
+
id: "ilert",
|
|
7
|
+
apis: [
|
|
8
|
+
createApiFactory({
|
|
9
|
+
api: ilertApiRef,
|
|
10
|
+
deps: {
|
|
11
|
+
discoveryApi: discoveryApiRef,
|
|
12
|
+
configApi: configApiRef,
|
|
13
|
+
fetchApi: fetchApiRef
|
|
14
|
+
},
|
|
15
|
+
factory: ({ discoveryApi, configApi, fetchApi }) => ILertClient.fromConfig(configApi, discoveryApi, fetchApi)
|
|
16
|
+
})
|
|
17
|
+
],
|
|
18
|
+
routes: {
|
|
19
|
+
root: iLertRouteRef
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const ILertPage = ilertPlugin.provide(
|
|
23
|
+
createRoutableExtension({
|
|
24
|
+
name: "ILertPage",
|
|
25
|
+
component: () => import('./components/index.esm.js').then((m) => m.ILertPage),
|
|
26
|
+
mountPoint: iLertRouteRef
|
|
27
|
+
})
|
|
28
|
+
);
|
|
29
|
+
const EntityILertCard = ilertPlugin.provide(
|
|
30
|
+
createComponentExtension({
|
|
31
|
+
name: "EntityILertCard",
|
|
32
|
+
component: {
|
|
33
|
+
lazy: () => import('./components/ILertCard/index.esm.js').then((m) => m.ILertCard)
|
|
34
|
+
}
|
|
35
|
+
})
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
export { EntityILertCard, ILertPage, ilertPlugin };
|
|
39
|
+
//# sourceMappingURL=plugin.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ILertClient, ilertApiRef } from './api';\nimport { iLertRouteRef } from './route-refs';\nimport {\n configApiRef,\n createApiFactory,\n createPlugin,\n discoveryApiRef,\n createRoutableExtension,\n createComponentExtension,\n fetchApiRef,\n} from '@backstage/core-plugin-api';\n\n/** @public */\nexport const ilertPlugin = createPlugin({\n id: 'ilert',\n apis: [\n createApiFactory({\n api: ilertApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n configApi: configApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, configApi, fetchApi }) =>\n ILertClient.fromConfig(configApi, discoveryApi, fetchApi),\n }),\n ],\n routes: {\n root: iLertRouteRef,\n },\n});\n\n/** @public */\nexport const ILertPage = ilertPlugin.provide(\n createRoutableExtension({\n name: 'ILertPage',\n component: () => import('./components').then(m => m.ILertPage),\n mountPoint: iLertRouteRef,\n }),\n);\n\n/** @public */\nexport const EntityILertCard = ilertPlugin.provide(\n createComponentExtension({\n name: 'EntityILertCard',\n component: {\n lazy: () => import('./components/ILertCard').then(m => m.ILertCard),\n },\n }),\n);\n"],"names":[],"mappings":";;;;AA6BO,MAAM,cAAc,YAAa,CAAA;AAAA,EACtC,EAAI,EAAA,OAAA;AAAA,EACJ,IAAM,EAAA;AAAA,IACJ,gBAAiB,CAAA;AAAA,MACf,GAAK,EAAA,WAAA;AAAA,MACL,IAAM,EAAA;AAAA,QACJ,YAAc,EAAA,eAAA;AAAA,QACd,SAAW,EAAA,YAAA;AAAA,QACX,QAAU,EAAA,WAAA;AAAA,OACZ;AAAA,MACA,OAAA,EAAS,CAAC,EAAE,YAAc,EAAA,SAAA,EAAW,QAAS,EAAA,KAC5C,WAAY,CAAA,UAAA,CAAW,SAAW,EAAA,YAAA,EAAc,QAAQ,CAAA;AAAA,KAC3D,CAAA;AAAA,GACH;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,aAAA;AAAA,GACR;AACF,CAAC,EAAA;AAGM,MAAM,YAAY,WAAY,CAAA,OAAA;AAAA,EACnC,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,WAAA;AAAA,IACN,SAAA,EAAW,MAAM,OAAO,2BAAc,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,SAAS,CAAA;AAAA,IAC7D,UAAY,EAAA,aAAA;AAAA,GACb,CAAA;AACH,EAAA;AAGO,MAAM,kBAAkB,WAAY,CAAA,OAAA;AAAA,EACzC,wBAAyB,CAAA;AAAA,IACvB,IAAM,EAAA,iBAAA;AAAA,IACN,SAAW,EAAA;AAAA,MACT,IAAA,EAAM,MAAM,OAAO,qCAAwB,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,SAAS,CAAA;AAAA,KACpE;AAAA,GACD,CAAA;AACH;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route-refs.esm.js","sources":["../src/route-refs.tsx"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createRouteRef } from '@backstage/core-plugin-api';\n\n/** @public */\nexport const iLertRouteRef = createRouteRef({\n id: 'ilert',\n});\n"],"names":[],"mappings":";;AAmBO,MAAM,gBAAgB,cAAe,CAAA;AAAA,EAC1C,EAAI,EAAA,OAAA;AACN,CAAC;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const PENDING = "PENDING";
|
|
2
|
+
const ACCEPTED = "ACCEPTED";
|
|
3
|
+
const RESOLVED = "RESOLVED";
|
|
4
|
+
const OPERATIONAL = "OPERATIONAL";
|
|
5
|
+
const UNDER_MAINTENANCE = "UNDER_MAINTENANCE";
|
|
6
|
+
const DEGRADED = "DEGRADED";
|
|
7
|
+
const PARTIAL_OUTAGE = "PARTIAL_OUTAGE";
|
|
8
|
+
const MAJOR_OUTAGE = "MAJOR_OUTAGE";
|
|
9
|
+
const PRIVATE = "PRIVATE";
|
|
10
|
+
const PUBLIC = "PUBLIC";
|
|
11
|
+
|
|
12
|
+
export { ACCEPTED, DEGRADED, MAJOR_OUTAGE, OPERATIONAL, PARTIAL_OUTAGE, PENDING, PRIVATE, PUBLIC, RESOLVED, UNDER_MAINTENANCE };
|
|
13
|
+
//# sourceMappingURL=types.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.esm.js","sources":["../src/types.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/** @public */\nexport interface Alert {\n id: number;\n summary: string;\n details: string;\n reportTime: string;\n resolvedOn: string;\n status: AlertStatus;\n priority: AlertPriority;\n alertKey: string;\n alertSource: AlertSource | null;\n assignedTo: User | null;\n responders: Responder[];\n logEntries: LogEntry[];\n links: Link[];\n images: Image[];\n subscribers: Subscriber[];\n commentText: string;\n commentPublishToSubscribers: boolean;\n}\n\n/** @public */\nexport const PENDING = 'PENDING';\n/** @public */\nexport const ACCEPTED = 'ACCEPTED';\n/** @public */\nexport const RESOLVED = 'RESOLVED';\n\n/** @public */\nexport type AlertStatus = typeof PENDING | typeof ACCEPTED | typeof RESOLVED;\n\n/** @public */\nexport type AlertPriority = 'HIGH' | 'LOW';\n\n/** @public */\nexport interface Link {\n href: string;\n text: string;\n}\n\n/** @public */\nexport interface Image {\n src: string;\n href: string;\n alt: string;\n}\n\n/** @public */\nexport type SubscriberType = 'TEAM' | 'USER';\n\n/** @public */\nexport interface Subscriber {\n id: number;\n name: string;\n type: SubscriberType;\n}\n\n/** @public */\nexport interface LogEntry {\n id: number;\n timestamp: string;\n logEntryType: string;\n text: string;\n alertId?: number;\n iconName?: string;\n iconClass?: string;\n filterTypes?: string[];\n}\n\n/** @public */\nexport interface User {\n id: number;\n username: string;\n firstName: string;\n lastName: string;\n email: string;\n mobile: Phone;\n landline: Phone;\n timezone?: string;\n language?: Language;\n role?: UserRole;\n notificationPreferences?: any[];\n position: string;\n department: string;\n}\n\n/** @public */\nexport interface Responder {\n acceptedAt?: string;\n status: string;\n user: User;\n}\n\n/** @public */\nexport type UserRole =\n | 'USER'\n | 'ADMIN'\n | 'STAKEHOLDER'\n | 'ACCOUNT_OWNER'\n | 'RESPONDER';\n/** @public */\nexport type Language = 'de' | 'en';\n/** @public */\nexport interface Phone {\n regionCode: string;\n number: string;\n}\n\n/** @public */\nexport interface AlertSource {\n id: number;\n name: string;\n status: AlertSourceStatus;\n escalationPolicy: EscalationPolicy;\n integrationType: AlertSourceIntegrationType;\n integrationKey?: string;\n iconUrl?: string;\n lightIconUrl?: string;\n darkIconUrl?: string;\n alertCreation?: AlertSourceAlertCreation;\n alertPriorityRule?: AlertSourceAlertPriorityRule;\n emailFiltered?: boolean;\n emailResolveFiltered?: boolean;\n active?: boolean;\n emailPredicates?: AlertSourceEmailPredicate[];\n emailResolvePredicates?: AlertSourceEmailPredicate[];\n filterOperator?: AlertSourceFilterOperator;\n resolveFilterOperator?: AlertSourceFilterOperator;\n supportHours?: AlertSourceSupportHours;\n heartbeat?: AlertSourceHeartbeat;\n autotaskMetadata?: AlertSourceAutotaskMetadata;\n autoResolutionTimeout?: string;\n teams: TeamShort[];\n}\n\n/** @public */\nexport interface TeamShort {\n id: number;\n name: string;\n}\n\n/** @public */\nexport interface TeamMember {\n user: User;\n role: 'STAKEHOLDER' | 'RESPONDER' | 'USER' | 'ADMIN';\n}\n\n/** @public */\nexport type AlertSourceStatus =\n | 'PENDING'\n | 'ALL_ACCEPTED'\n | 'ALL_RESOLVED'\n | 'IN_MAINTENANCE'\n | 'DISABLED';\n/** @public */\nexport type AlertSourceIntegrationType =\n | 'NAGIOS'\n | 'ICINGA'\n | 'EMAIL'\n | 'SMS'\n | 'API'\n | 'CRN'\n | 'HEARTBEAT'\n | 'PRTG'\n | 'PINGDOM'\n | 'CLOUDWATCH'\n | 'AWSPHD'\n | 'STACKDRIVER'\n | 'INSTANA'\n | 'ZABBIX'\n | 'SOLARWINDS'\n | 'PROMETHEUS'\n | 'NEWRELIC'\n | 'GRAFANA'\n | 'GITHUB'\n | 'DATADOG'\n | 'UPTIMEROBOT'\n | 'APPDYNAMICS'\n | 'DYNATRACE'\n | 'TOPDESK'\n | 'STATUSCAKE'\n | 'MONITOR'\n | 'TOOL'\n | 'CHECKMK'\n | 'AUTOTASK'\n | 'AWSBUDGET'\n | 'KENTIXAM'\n | 'CONSUL'\n | 'ZAMMAD'\n | 'SIGNALFX'\n | 'SPLUNK'\n | 'KUBERNETES'\n | 'SEMATEXT'\n | 'SENTRY'\n | 'SUMOLOGIC'\n | 'RAYGUN'\n | 'MXTOOLBOX'\n | 'ESWATCHER'\n | 'AMAZONSNS'\n | 'KAPACITOR'\n | 'CORTEXXSOAR'\n | string;\n/** @public */\nexport type AlertSourceAlertCreation =\n | 'ONE_ALERT_PER_EMAIL'\n | 'ONE_ALERT_PER_EMAIL_SUBJECT'\n | 'ONE_PENDING_ALERT_ALLOWED'\n | 'ONE_OPEN_ALERT_ALLOWED'\n | 'OPEN_RESOLVE_ON_EXTRACTION';\n/** @public */\nexport type AlertSourceFilterOperator = 'AND' | 'OR';\n/** @public */\nexport type AlertSourceAlertPriorityRule =\n | 'HIGH'\n | 'LOW'\n | 'HIGH_DURING_SUPPORT_HOURS'\n | 'LOW_DURING_SUPPORT_HOURS';\n\n/** @public */\nexport const OPERATIONAL = 'OPERATIONAL';\n/** @public */\nexport const UNDER_MAINTENANCE = 'UNDER_MAINTENANCE';\n/** @public */\nexport const DEGRADED = 'DEGRADED';\n/** @public */\nexport const PARTIAL_OUTAGE = 'PARTIAL_OUTAGE';\n/** @public */\nexport const MAJOR_OUTAGE = 'MAJOR_OUTAGE';\n\n/** @public */\nexport type ServiceStatus =\n | typeof OPERATIONAL\n | typeof UNDER_MAINTENANCE\n | typeof DEGRADED\n | typeof PARTIAL_OUTAGE\n | typeof MAJOR_OUTAGE;\n\n/** @public */\nexport const PRIVATE = 'PRIVATE';\n/** @public */\nexport const PUBLIC = 'PUBLIC';\n\n/** @public */\nexport type StatusPageVisibility = typeof PRIVATE | typeof PUBLIC;\n\n/** @public */\nexport interface AlertSourceEmailPredicate {\n field: 'EMAIL_FROM' | 'EMAIL_SUBJECT' | 'EMAIL_BODY';\n criteria:\n | 'CONTAINS_ANY_WORDS'\n | 'CONTAINS_NOT_WORDS'\n | 'CONTAINS_STRING'\n | 'CONTAINS_NOT_STRING'\n | 'IS_STRING'\n | 'IS_NOT_STRING'\n | 'MATCHES_REGEX'\n | 'MATCHES_NOT_REGEX';\n value: string;\n}\n/** @public */\nexport type AlertSourceTimeZone =\n | 'Europe/Berlin'\n | 'America/New_York'\n | 'America/Los_Angeles'\n | 'Asia/Istanbul';\n/** @public */\nexport interface AlertSourceSupportDay {\n start: string;\n end: string;\n}\n/** @public */\nexport interface AlertSourceSupportHours {\n timezone: AlertSourceTimeZone;\n autoRaiseAlerts: boolean;\n supportDays: {\n MONDAY: AlertSourceSupportDay;\n TUESDAY: AlertSourceSupportDay;\n WEDNESDAY: AlertSourceSupportDay;\n THURSDAY: AlertSourceSupportDay;\n FRIDAY: AlertSourceSupportDay;\n SATURDAY: AlertSourceSupportDay;\n SUNDAY: AlertSourceSupportDay;\n };\n}\n/** @public */\nexport interface AlertSourceHeartbeat {\n summary: string;\n intervalSec: number;\n status: 'OVERDUE' | 'ON_TIME' | 'NEVER_RECEIVED';\n}\n\n/** @public */\nexport interface AlertSourceAutotaskMetadata {\n userName: string;\n secret: string;\n apiIntegrationCode: string;\n webServer: string;\n}\n\n/** @public */\nexport interface EscalationPolicy {\n id: number;\n name: string;\n escalationRules: EscalationRule[];\n newEscalationRule: EscalationRule;\n repeating?: boolean;\n frequency?: number;\n teams: TeamShort[];\n}\n\n/** @public */\nexport interface EscalationRule {\n user: User | null;\n schedule: Schedule | null;\n escalationTimeout: number;\n}\n\n/** @public */\nexport interface Schedule {\n id: number;\n name: string;\n timezone: string;\n startsOn: string;\n currentShift: Shift;\n nextShift: Shift;\n shifts: Shift[];\n overrides: Shift[];\n teams: TeamShort[];\n}\n\n/** @public */\nexport interface Shift {\n user: User;\n start: string;\n end: string;\n}\n\n/** @public */\nexport interface AlertResponder {\n group: 'SUGGESTED' | 'USER' | 'ESCALATION_POLICY' | 'ON_CALL_SCHEDULE';\n id: number;\n name: string;\n disabled: boolean;\n}\n\n/** @public */\nexport interface AlertAction {\n name: string;\n type: string;\n webhookId: string;\n extensionId?: string;\n history?: AlertActionHistory[];\n}\n\n/** @public */\nexport interface AlertActionHistory {\n id: string;\n webhookId: string;\n alertId: number;\n actor: User;\n success: boolean;\n}\n\n/** @public */\nexport interface OnCall {\n user: User;\n escalationPolicy: EscalationPolicy;\n schedule?: Schedule;\n start: string;\n end: string;\n escalationLevel: number;\n}\n\n/** @public */\nexport interface Service {\n id: number;\n name: string;\n status: ServiceStatus;\n uptime: Uptime;\n}\n\n/** @public */\nexport interface Uptime {\n uptimePercentage: UptimePercentage;\n}\n\n/** @public */\nexport interface UptimePercentage {\n p90: number;\n}\n\n/** @public */\nexport interface StatusPage {\n id: number;\n name: string;\n domain: string;\n subdomain: string;\n visibility: StatusPageVisibility;\n status: ServiceStatus;\n}\n"],"names":[],"mappings":"AAsCO,MAAM,OAAU,GAAA,UAAA;AAEhB,MAAM,QAAW,GAAA,WAAA;AAEjB,MAAM,QAAW,GAAA,WAAA;AAiMjB,MAAM,WAAc,GAAA,cAAA;AAEpB,MAAM,iBAAoB,GAAA,oBAAA;AAE1B,MAAM,QAAW,GAAA,WAAA;AAEjB,MAAM,cAAiB,GAAA,iBAAA;AAEvB,MAAM,YAAe,GAAA,eAAA;AAWrB,MAAM,OAAU,GAAA,UAAA;AAEhB,MAAM,MAAS,GAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-ilert",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "A Backstage plugin that integrates towards iLert",
|
|
5
5
|
"backstage": {
|
|
6
|
-
"role": "frontend-plugin"
|
|
6
|
+
"role": "frontend-plugin",
|
|
7
|
+
"pluginId": "ilert",
|
|
8
|
+
"pluginPackages": [
|
|
9
|
+
"@backstage-community/plugin-ilert"
|
|
10
|
+
]
|
|
7
11
|
},
|
|
8
12
|
"publishConfig": {
|
|
9
13
|
"access": "public",
|
|
@@ -34,11 +38,11 @@
|
|
|
34
38
|
"test": "backstage-cli package test"
|
|
35
39
|
},
|
|
36
40
|
"dependencies": {
|
|
37
|
-
"@backstage/catalog-model": "^1.
|
|
38
|
-
"@backstage/core-components": "^0.14.
|
|
39
|
-
"@backstage/core-plugin-api": "^1.9.
|
|
41
|
+
"@backstage/catalog-model": "^1.5.0",
|
|
42
|
+
"@backstage/core-components": "^0.14.9",
|
|
43
|
+
"@backstage/core-plugin-api": "^1.9.3",
|
|
40
44
|
"@backstage/errors": "^1.2.4",
|
|
41
|
-
"@backstage/plugin-catalog-react": "^1.
|
|
45
|
+
"@backstage/plugin-catalog-react": "^1.12.2",
|
|
42
46
|
"@date-io/luxon": "1.x",
|
|
43
47
|
"@material-ui/core": "^4.12.2",
|
|
44
48
|
"@material-ui/icons": "^4.9.1",
|
|
@@ -50,8 +54,8 @@
|
|
|
50
54
|
"react-use": "^17.2.4"
|
|
51
55
|
},
|
|
52
56
|
"devDependencies": {
|
|
53
|
-
"@backstage/cli": "^0.26.
|
|
54
|
-
"@backstage/dev-utils": "^1.0.
|
|
57
|
+
"@backstage/cli": "^0.26.11",
|
|
58
|
+
"@backstage/dev-utils": "^1.0.36",
|
|
55
59
|
"@testing-library/dom": "^10.0.0",
|
|
56
60
|
"@testing-library/jest-dom": "^6.0.0",
|
|
57
61
|
"@testing-library/react": "^15.0.0",
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export { ILertCard, Router as ILertPage, isPluginApplicableToEntity } from '../index.esm.js';
|
|
2
|
-
import '@backstage/core-plugin-api';
|
|
3
|
-
import '@backstage/errors';
|
|
4
|
-
import 'luxon';
|
|
5
|
-
import '@backstage/core-components';
|
|
6
|
-
import 'react';
|
|
7
|
-
import '@material-ui/core/Button';
|
|
8
|
-
import '@material-ui/icons/Add';
|
|
9
|
-
import 'react-use/esm/useAsyncRetry';
|
|
10
|
-
import '@backstage/catalog-model';
|
|
11
|
-
import '@material-ui/core/Typography';
|
|
12
|
-
import '@material-ui/core/Dialog';
|
|
13
|
-
import '@material-ui/core/DialogActions';
|
|
14
|
-
import '@material-ui/core/DialogContent';
|
|
15
|
-
import '@material-ui/core/DialogTitle';
|
|
16
|
-
import '@material-ui/core/styles';
|
|
17
|
-
import '@material-ui/core/TextField';
|
|
18
|
-
import '@material-ui/core/useMediaQuery';
|
|
19
|
-
import '@material-ui/lab/Alert';
|
|
20
|
-
import '@material-ui/lab/Autocomplete';
|
|
21
|
-
import 'humanize-duration';
|
|
22
|
-
import '@material-ui/core/IconButton';
|
|
23
|
-
import '@material-ui/core/Menu';
|
|
24
|
-
import '@material-ui/core/MenuItem';
|
|
25
|
-
import '@material-ui/icons/MoreVert';
|
|
26
|
-
import '@material-ui/core/Grid';
|
|
27
|
-
import '@material-ui/core/Chip';
|
|
28
|
-
import '@material-ui/core/Checkbox';
|
|
29
|
-
import '@material-ui/core/FormControl';
|
|
30
|
-
import '@material-ui/core/ListItemText';
|
|
31
|
-
import '@material-ui/core/Select';
|
|
32
|
-
import '@material-ui/core/Card';
|
|
33
|
-
import '@material-ui/core/CardContent';
|
|
34
|
-
import '@material-ui/core/CardHeader';
|
|
35
|
-
import '@material-ui/icons/Repeat';
|
|
36
|
-
import '@material-ui/pickers/DateTimePicker';
|
|
37
|
-
import '@material-ui/pickers/MuiPickersUtilsProvider';
|
|
38
|
-
import '@date-io/luxon';
|
|
39
|
-
import '@material-ui/core/Divider';
|
|
40
|
-
import '@backstage/plugin-catalog-react';
|
|
41
|
-
import '@material-ui/icons/AlarmAdd';
|
|
42
|
-
import '@material-ui/icons/Build';
|
|
43
|
-
import '@material-ui/icons/Pause';
|
|
44
|
-
import '@material-ui/icons/PlayArrow';
|
|
45
|
-
import '@material-ui/icons/Web';
|
|
46
|
-
import '@material-ui/core/DialogContentText';
|
|
47
|
-
import '@material-ui/core/List';
|
|
48
|
-
import '@material-ui/core/ListItem';
|
|
49
|
-
import '@material-ui/core/ListItemIcon';
|
|
50
|
-
import '@material-ui/core/ListSubheader';
|
|
51
|
-
import '@material-ui/icons/Replay';
|
|
52
|
-
import '@material-ui/core/Avatar';
|
|
53
|
-
import '@material-ui/core/ListItemSecondaryAction';
|
|
54
|
-
import '@material-ui/core/Tooltip';
|
|
55
|
-
import '@material-ui/icons/Email';
|
|
56
|
-
import '@material-ui/icons/Phone';
|
|
57
|
-
import '@material-ui/core/SvgIcon';
|
|
58
|
-
//# sourceMappingURL=index-D2_Gjvjx.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-D2_Gjvjx.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export { ILertCard, isPluginApplicableToEntity } from '../index.esm.js';
|
|
2
|
-
import '@backstage/core-plugin-api';
|
|
3
|
-
import '@backstage/errors';
|
|
4
|
-
import 'luxon';
|
|
5
|
-
import '@backstage/core-components';
|
|
6
|
-
import 'react';
|
|
7
|
-
import '@material-ui/core/Button';
|
|
8
|
-
import '@material-ui/icons/Add';
|
|
9
|
-
import 'react-use/esm/useAsyncRetry';
|
|
10
|
-
import '@backstage/catalog-model';
|
|
11
|
-
import '@material-ui/core/Typography';
|
|
12
|
-
import '@material-ui/core/Dialog';
|
|
13
|
-
import '@material-ui/core/DialogActions';
|
|
14
|
-
import '@material-ui/core/DialogContent';
|
|
15
|
-
import '@material-ui/core/DialogTitle';
|
|
16
|
-
import '@material-ui/core/styles';
|
|
17
|
-
import '@material-ui/core/TextField';
|
|
18
|
-
import '@material-ui/core/useMediaQuery';
|
|
19
|
-
import '@material-ui/lab/Alert';
|
|
20
|
-
import '@material-ui/lab/Autocomplete';
|
|
21
|
-
import 'humanize-duration';
|
|
22
|
-
import '@material-ui/core/IconButton';
|
|
23
|
-
import '@material-ui/core/Menu';
|
|
24
|
-
import '@material-ui/core/MenuItem';
|
|
25
|
-
import '@material-ui/icons/MoreVert';
|
|
26
|
-
import '@material-ui/core/Grid';
|
|
27
|
-
import '@material-ui/core/Chip';
|
|
28
|
-
import '@material-ui/core/Checkbox';
|
|
29
|
-
import '@material-ui/core/FormControl';
|
|
30
|
-
import '@material-ui/core/ListItemText';
|
|
31
|
-
import '@material-ui/core/Select';
|
|
32
|
-
import '@material-ui/core/Card';
|
|
33
|
-
import '@material-ui/core/CardContent';
|
|
34
|
-
import '@material-ui/core/CardHeader';
|
|
35
|
-
import '@material-ui/icons/Repeat';
|
|
36
|
-
import '@material-ui/pickers/DateTimePicker';
|
|
37
|
-
import '@material-ui/pickers/MuiPickersUtilsProvider';
|
|
38
|
-
import '@date-io/luxon';
|
|
39
|
-
import '@material-ui/core/Divider';
|
|
40
|
-
import '@backstage/plugin-catalog-react';
|
|
41
|
-
import '@material-ui/icons/AlarmAdd';
|
|
42
|
-
import '@material-ui/icons/Build';
|
|
43
|
-
import '@material-ui/icons/Pause';
|
|
44
|
-
import '@material-ui/icons/PlayArrow';
|
|
45
|
-
import '@material-ui/icons/Web';
|
|
46
|
-
import '@material-ui/core/DialogContentText';
|
|
47
|
-
import '@material-ui/core/List';
|
|
48
|
-
import '@material-ui/core/ListItem';
|
|
49
|
-
import '@material-ui/core/ListItemIcon';
|
|
50
|
-
import '@material-ui/core/ListSubheader';
|
|
51
|
-
import '@material-ui/icons/Replay';
|
|
52
|
-
import '@material-ui/core/Avatar';
|
|
53
|
-
import '@material-ui/core/ListItemSecondaryAction';
|
|
54
|
-
import '@material-ui/core/Tooltip';
|
|
55
|
-
import '@material-ui/icons/Email';
|
|
56
|
-
import '@material-ui/icons/Phone';
|
|
57
|
-
import '@material-ui/core/SvgIcon';
|
|
58
|
-
//# sourceMappingURL=index-aory7UQN.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-aory7UQN.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|