UNPKG

@pagerduty/backstage-plugin

Version:

A Backstage plugin that integrates towards PagerDuty

15 lines (12 loc) 500 B
import { PAGERDUTY_ACCOUNT_NAME, PAGERDUTY_INTEGRATION_KEY, PAGERDUTY_SERVICE_ID } from './constants.esm.js'; function getPagerDutyEntity(entity) { const { [PAGERDUTY_INTEGRATION_KEY]: integrationKey, [PAGERDUTY_SERVICE_ID]: serviceId, [PAGERDUTY_ACCOUNT_NAME]: account } = entity.metadata.annotations || {}; const name = entity.metadata.name; return { integrationKey, serviceId, account, name }; } export { getPagerDutyEntity }; //# sourceMappingURL=pagerDutyEntity.esm.js.map