UNPKG

watchtower-node-sdk

Version:

A TypeScript Node.js SDK for the Watchtower API, providing API key management, connection string generation, and more

32 lines (31 loc) 1.99 kB
declare function checkHealth(): Promise<void>; declare function verifyOrgApiKey(apiKey: string): Promise<void>; declare function verifyAppApiKey(apiKey: string): Promise<void>; declare function createLog(organization_apikey: string, app_apikey: string, tenant_apikey: string | undefined, item_id: string, metrics: Array<{ name: string; friendly_name: string; value: any; unit: string; }>): Promise<void>; declare function getLogs(organization_apikey: string, app_apikey: string, tenant_apikey: string | undefined, item_id: string, limit?: number, days?: number): Promise<void>; declare function analyzeLogs(organization_apikey: string, app_apikey: string, tenant_apikey: string | undefined, item_id: string, limit?: number, days?: number): Promise<void>; declare function createBatchLogs(organization_apikey: string, app_apikey: string, tenant_apikey: string | undefined, log_entries: Array<{ item_id: string; metrics: Array<{ name: string; friendly_name: string; value: any; unit: string; }>; }>): Promise<void>; declare function createTenant(org_apikey: string, app_apikey: string, client_email: string): Promise<void>; declare function validateTenant(apikey: string): Promise<void>; declare function getAppStatusOverview(organization_apikey: string, app_apikey: string, tenant_apikey: string | undefined): Promise<void>; declare function analyzeCurrentLog(organization_apikey: string, app_apikey: string, tenant_apikey: string | undefined, item_id: string, metrics: Array<{ name: string; friendly_name: string; value: any; unit: string; }>): Promise<void>; declare function getLatestAnalysis(organization_apikey: string, app_apikey: string, tenant_apikey: string | undefined, item_id: string): Promise<void>; export { checkHealth, verifyOrgApiKey, verifyAppApiKey, createLog, getLogs, analyzeLogs, createBatchLogs, createTenant, validateTenant, getAppStatusOverview, analyzeCurrentLog, getLatestAnalysis };