feat(plugins/pagerduty): remove unused getServiceByIntegrationKey
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
This commit is contained in:
@@ -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> {
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user