diff --git a/plugins/pagerduty/src/api/client.ts b/plugins/pagerduty/src/api/client.ts index 50428e0a18..50d9c7cdd9 100644 --- a/plugins/pagerduty/src/api/client.ts +++ b/plugins/pagerduty/src/api/client.ts @@ -57,16 +57,6 @@ export class PagerDutyClient implements PagerDutyApi { } constructor(private readonly config: ClientApiConfig) {} - async getServiceByIntegrationKey(integrationKey: string): Promise { - const params = `${commonGetServiceParams}&query=${integrationKey}`; - const url = `${await this.config.discoveryApi.getBaseUrl( - 'proxy', - )}/pagerduty/services?${params}`; - const { services } = await this.getByUrl(url); - - return services; - } - async getServiceByEntity( pagerDutyEntity: PagerDutyEntity, ): Promise { diff --git a/plugins/pagerduty/src/api/types.ts b/plugins/pagerduty/src/api/types.ts index 421a0f9772..8ec95c285b 100644 --- a/plugins/pagerduty/src/api/types.ts +++ b/plugins/pagerduty/src/api/types.ts @@ -26,12 +26,6 @@ export type TriggerAlarmRequest = { }; export interface PagerDutyApi { - /** - * Fetches a list of services, filtered by the provided integration key. - * - */ - getServiceByIntegrationKey(integrationKey: string): Promise; - /** * Fetches the service for the provided PagerDutyEntity. *