forked from microsoft/agent-governance-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmetrics.go
More file actions
31 lines (25 loc) · 999 Bytes
/
metrics.go
File metadata and controls
31 lines (25 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
package agentmesh
// GovernanceMetrics provides observability stubs for governance operations.
// When a real metrics backend (OpenTelemetry, Prometheus) is configured,
// replace these no-ops with real instrumentation.
type GovernanceMetrics struct {
Enabled bool
}
// NewGovernanceMetrics creates a new metrics recorder.
func NewGovernanceMetrics(enabled bool) *GovernanceMetrics {
return &GovernanceMetrics{Enabled: enabled}
}
// RecordPolicyDecision records a policy evaluation result.
func (m *GovernanceMetrics) RecordPolicyDecision(decision string, durationMs float64) {
// No-op stub — replace with OTel/Prometheus when configured
}
// RecordTrustScore records a trust score update.
func (m *GovernanceMetrics) RecordTrustScore(agentID string, score float64) {
// No-op stub
}
// RecordAuditEntry records an audit chain append.
func (m *GovernanceMetrics) RecordAuditEntry(seq uint64) {
// No-op stub
}