import { Rivendell } from './Rivendell'; export declare namespace Moria { interface LogEntryContext { appId?: string; appVersion?: string; trackerId?: string; installId?: string; entryPoint?: string; requestId?: string; jobId?: string; buildId?: string; } interface LoggingSearchCriteria { context: LogEntryContext; start?: number; end?: number; audience?: Audience; level?: LogLevel; pageSize?: number; cursor?: string; terms?: string[]; } interface LoggingSearchResult { cursor: string; entries: LogEntry[]; } interface LogEntry { id: string; level: LogLevel; time: number; message: string; context: LogEntryContext; audience: Audience; } enum Audience { USER = "USER", DEVELOPER = "DEVELOPER", ZAIUS = "ZAIUS" } enum LogLevel { INFO = "INFO", DEBUG = "DEBUG", WARN = "WARN", ERROR = "ERROR" } /** * Search for LogEntries using the supplied criteria. * @param criteria */ function searchLogging(criteria: LoggingSearchCriteria, shard: Rivendell.Shard): Promise; }