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