UNPKG

watchtower-node-sdk

Version:

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

62 lines (54 loc) 1.27 kB
export interface GetMetricsRequest { organization_apikey: string; app_apikey: string; tenant_apikey: string; } export interface Metrics { app_id: string; tenant_id?: string; analysis_count: number; log_count: number; last_updated: string; } export interface GetMetricsResponse { metrics: Metrics; } export interface GetAppMetadataRequest { organization_apikey: string; app_apikey: string; } export interface AppMetadata { id: number; app_id: string; tenant_count: number; total_log_count: number; total_analysis_count: number; last_log_at: string; first_log_at: string; last_analysis_at: string; created_at: string; updated_at: string; } export interface GetAppMetadataResponse { metadata: AppMetadata; } export interface GetTenantMetadataRequest { organization_apikey: string; app_apikey: string; tenant_apikey: string; } export interface TenantMetadata { id: number; app_id: string; tenant_id: string; log_count: number; last_log_at: string; first_log_at: string; analysis_count: number; last_analysis_at: string; created_at: string; updated_at: string; } export interface GetTenantMetadataResponse { metadata: TenantMetadata; }