/** * According to Opentsdb specification, only the following characters are allowed: * a to z, A to Z, 0 to 9, -, _, ., / or Unicode letters (as per the specification) */ import { MetricLevel } from '../common/MetricLevel'; export declare enum CollectMetricType { /** * 用于累加型的数据 */ COUNTER = "COUNTER", /** * 用于瞬态数据 */ GAUGE = "GAUGE", /** * 用于整分整秒的计数 */ DELTA = "DELTA", } export declare class Builder { private metric; constructor(name: any); build(): MetricObject; withValue(value: any): Builder; withTimestamp(timestamp: number): Builder; withTags(tags: any): Builder; withType(type: CollectMetricType): Builder; withLevel(level: MetricLevel): Builder; withInterval(interval: number): Builder; } export declare class MetricObject { static MetricType: typeof CollectMetricType; static named(name: string): Builder; metric: string; timestamp: number; value: any; metricType: CollectMetricType; tags: {}; metricLevel: MetricLevel; /** * 分桶统计时间间隔,目前针对Meter/BaseTimer/Compass有效,-1表示此项无效 */ interval: number; getMetric(): string; toString(): string; toJSON(): { metric: string; timestamp: number; value: any; type: CollectMetricType; level: MetricLevel; tags: {}; interval: number; }; }