import { MetricName } from './MetricName' ; import { Metric } from './domain' ; /**
 * A filter used to determine whether or not a metric should be reported, among other things.
 */ export interface Filter { param name param metric return { code matches ( name , metric ) : boolean ; } export class AllFilter implements Filter { matches ( name , metric ) { return true ; } } export abstract class MetricFilter implements Filter { static ALL = new AllFilter ( ) ; abstract matches ( name , metric ) ; }