Contents

MetricGroup

A value that identifies the category a metric belongs to.

Declaration

struct MetricGroup

Mentioned in

Discussion

Use MetricGroup with metricGroup to filter or group results without exhaustive switching. For example, to process only CPU-related metrics:

for result in entry.values where result.metricGroup == .cpu {
    // handle CPU metrics
}

Topics

Metric Groups

See Also

Result types