From 1298ab0003887aa9f9e54df2b77e2448a3096def Mon Sep 17 00:00:00 2001 From: Brian Fletcher Date: Mon, 8 May 2023 14:29:22 +0100 Subject: [PATCH] add ability to configure the pagerduty settings Signed-off-by: Brian Fletcher --- plugins/pagerduty/src/plugin.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/plugins/pagerduty/src/plugin.ts b/plugins/pagerduty/src/plugin.ts index b31c2fdbd3..8916690a24 100644 --- a/plugins/pagerduty/src/plugin.ts +++ b/plugins/pagerduty/src/plugin.ts @@ -73,5 +73,25 @@ export const PagerDutyHomepageCard = homePlugin.provide( name: 'PagerDutyHomepageCard', title: 'Pager Duty Homepage Card', components: () => import('./components/PagerDutyHomepageCard'), + settings: { + schema: { + title: 'Pagerduty', + type: 'object', + properties: { + integrationKey: { + title: 'Pager duty integration key', + type: 'string', + }, + serviceId: { + title: 'Pager duty service id', + type: 'string', + }, + name: { + title: 'Pager duty service name', + type: 'string', + }, + }, + }, + }, }), );