Skip to content

Commit

Permalink
Merge pull request Azure#55 from katherinelc321/add-metrics-interface
Browse files Browse the repository at this point in the history
add metrics interface
  • Loading branch information
s-amann authored Apr 15, 2024
2 parents a656a66 + 9e163fc commit 3382078
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions internal/metrics/metrics.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package metrics

// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.

// Emitter emits different types of metrics
type Emitter interface {
EmitCounter(metricName string, value float64, labels map[string]string)
EmitGauge(metricName string, value float64, labels map[string]string)
}

0 comments on commit 3382078

Please sign in to comment.