npm package diff
Package: @forge/runtime
Versions: 6.0.0-next.0-experimental-97e4b11 - 6.0.0-next.1
File: package/out/metrics/metrics.d.ts
Index: package/out/metrics/metrics.d.ts
===================================================================
--- package/out/metrics/metrics.d.ts
+++ package/out/metrics/metrics.d.ts
@@ -1,29 +0,0 @@
-import { Metrics, Tags } from '@forge/util/packages/metrics-interface';
-import { BaseInvocationRequest } from '../sandbox/invocation-request';
-export declare enum MetricType {
- TimerMetric = "timer",
- CounterMetric = "counter",
- GaugeMetric = "gauge"
-}
-export interface Metric {
- name: string;
- type: MetricType;
- value: number | string;
- tags: Tags;
-}
-export declare class MetricsCollector {
- private readonly _metrics;
- constructor(_metrics: Metrics);
- metrics(): Metrics;
- collectMetrics(): Metric[];
- static collect(metrics: Metrics, prefix?: string | undefined): Metric[];
- wrapInMetrics<Ret>(options: {
- name: string;
- tags?: Tags;
- }, callback: () => Promise<Ret>): Promise<Ret>;
-}
-export declare const createMetricsCollector: (xenInvocationRequest: BaseInvocationRequest) => {
- collector: MetricsCollector;
- enabled: boolean;
-};
-//# sourceMappingURL=metrics.d.ts.map
\ No newline at end of file