feat(plugins/pagerduty): remove unused getServiceByIntegrationKey

Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
This commit is contained in:
Alec Jacobs
2022-06-03 15:15:29 -07:00
parent 8fe1113c96
commit 9b8438fd72
2 changed files with 0 additions and 16 deletions
-10
View File
@@ -57,16 +57,6 @@ export class PagerDutyClient implements PagerDutyApi {
}
constructor(private readonly config: ClientApiConfig) {}
async getServiceByIntegrationKey(integrationKey: string): Promise<Service[]> {
const params = `${commonGetServiceParams}&query=${integrationKey}`;
const url = `${await this.config.discoveryApi.getBaseUrl(
'proxy',
)}/pagerduty/services?${params}`;
const { services } = await this.getByUrl<ServicesResponse>(url);
return services;
}
async getServiceByEntity(
pagerDutyEntity: PagerDutyEntity,
): Promise<ServiceResponse> {
-6
View File
@@ -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<Service[]>;
/**
* Fetches the service for the provided PagerDutyEntity.
*