UNPKG

@neurosity/sdk

Version:
7 lines (6 loc) 455 B
import { SDKOptions } from "../types/options"; export declare const isMetric: (metric: string) => boolean; export declare const getLabels: (metric: string) => string[]; export declare const hasInvalidLabels: (metric: string, labels: string[]) => boolean; export declare const isMetricDisallowed: (metricName: string, options: SDKOptions) => boolean; export declare const validate: (metric: string, labels: string[], options: SDKOptions) => Error | false;