mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Internal change (diffbased).
PiperOrigin-RevId: 539237974
This commit is contained in:
committed by
gVisor bot
parent
8cc1d5bbde
commit
4708d1c115
@@ -893,3 +893,13 @@ func (v *Verifier) Verify(snapshot *Snapshot) error {
|
||||
v.lastPacker = newPacker
|
||||
return nil
|
||||
}
|
||||
|
||||
// AllMetrics returns the metadata of all the metrics that were declared as
|
||||
// part of this Verifier.
|
||||
func (v *Verifier) AllMetrics() []*pb.MetricMetadata {
|
||||
metrics := make([]*pb.MetricMetadata, 0, len(v.knownMetrics))
|
||||
for _, m := range v.knownMetrics {
|
||||
metrics = append(metrics, m.metadata)
|
||||
}
|
||||
return metrics
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user