feat(plugins/pagerduty): remove unused getServiceByServiceId

Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
This commit is contained in:
Alec Jacobs
2022-06-03 15:14:53 -07:00
parent 71cc97f207
commit 8fe1113c96
2 changed files with 0 additions and 16 deletions
-10
View File
@@ -67,16 +67,6 @@ export class PagerDutyClient implements PagerDutyApi {
return services;
}
async getServiceByServiceId(serviceId: string): Promise<Service> {
const params = commonGetServiceParams;
const url = `${await this.config.discoveryApi.getBaseUrl(
'proxy',
)}/pagerduty/services/${serviceId}?${params}`;
const { service } = await this.getByUrl<ServiceResponse>(url);
return service;
}
async getServiceByEntity(
pagerDutyEntity: PagerDutyEntity,
): Promise<ServiceResponse> {
-6
View File
@@ -32,12 +32,6 @@ export interface PagerDutyApi {
*/
getServiceByIntegrationKey(integrationKey: string): Promise<Service[]>;
/**
* Fetches the service for the provided service id.
*
*/
getServiceByServiceId(serviceId: string): Promise<Service>;
/**
* Fetches the service for the provided PagerDutyEntity.
*