active-switching
Version:
NPAW's SDK for CDN Balancing and P2P
26 lines (25 loc) • 778 B
TypeScript
/**
* @class
* @description This class reports current pluguin status to the DB
* @exports StatsReportingBusinessObject
*/
import Loader from '../Loaders/Loader';
export default class StatsReportingBusinessObject {
private static _instance;
private loader;
private started;
private stopped;
private lastStats;
private host;
private token;
private accountCode;
private profileName;
private resource;
private title;
constructor(loader: Loader);
updateData(host: string, token: string, accountCode: string, profileName: string, resource: string, title: string): Promise<void>;
start(): Promise<void>;
report(): void;
private reportRequest;
static getInstance(loader?: Loader): StatsReportingBusinessObject;
}