sfdx-hardis
Version:
Swiss-army-knife Toolbox for Salesforce. Allows you to define a complete CD/CD Pipeline. Orchestrate base commands and assist users with interactive wizards
28 lines (27 loc) • 878 B
TypeScript
import { NotifProviderRoot } from "./notifProviderRoot.js";
import { NotifMessage, NotifSeverity } from "./index.js";
export declare class ApiProvider extends NotifProviderRoot {
protected apiUrl: string | null;
payload: ApiNotifMessage;
payloadFormatted: any;
protected metricsApiUrl: string | null;
metricsPayload: string;
getLabel(): string;
isApplicableForNotif(notifMessage: NotifMessage): boolean;
isUserNotifProvider(): boolean;
postNotification(notifMessage: NotifMessage): Promise<void>;
private buildPayload;
private formatPayload;
private formatPayloadLoki;
private sendToApi;
private buildMetricsPayload;
private sendToMetricsApi;
}
export interface ApiNotifMessage {
source: string;
type: string;
severity: NotifSeverity;
orgIdentifier: string;
gitIdentifier: string;
data: any;
}