/************************************************************************* * Copyright 2020 Adobe * All Rights Reserved. * * NOTICE: Adobe permits you to use, modify, and distribute this file in * accordance with the terms of the Adobe license agreement accompanying * it. If you have received this file from a source other than Adobe, * then your use, modification, or distribution of it requires the prior * written permission of Adobe. **************************************************************************/ import { Events } from './metrics/Events'; import { Level } from './metrics/Level'; import Metric from './metrics/Metric'; import Metrics from './metrics/Metrics'; /** * Defines the metrics API. */ export interface MetricsApi { /** * Creates a metrics instance for the specified component to log entries and events. * @param name The name of the component. * @param args Optional arguments that will be written into the * metricsState context bag on the recorded metrics. */ create(name: string, ...args: any): Readonly; } declare const api: MetricsApi; export default api; /** * @ignore */ export { Events, Level }; /** * @ignore */ export type { Metric, Metrics };