mirror of
https://github.com/hanzoai/mcp-server-cloudflare.git
synced 2026-10-30 18:28:06 +00:00
21 lines
400 B
TypeScript
21 lines
400 B
TypeScript
import { MetricsEvent, MetricsEventIndexIds } from '@repo/mcp-observability'
|
|
|
|
export class ContainerEvent extends MetricsEvent {
|
|
constructor(
|
|
private containers: {
|
|
active?: number
|
|
}
|
|
) {
|
|
super()
|
|
}
|
|
|
|
toDataPoint(): AnalyticsEngineDataPoint {
|
|
return {
|
|
indexes: [MetricsEventIndexIds.CONTAINER_MANAGER],
|
|
doubles: this.mapDoubles({
|
|
double1: this.containers.active,
|
|
}),
|
|
}
|
|
}
|
|
}
|