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;
} 