CustomMetric

constructor(providerId: String, displayName: String, description: String = "", unit: String = "", systemValue: Double? = null, moduleValues: Map<String, Double> = emptyMap())(source)

Parameters

providerId

Stable identifier of the contributing provider (its id). Used as the column key and must be unique across loaded providers - a duplicate is dropped.

displayName

Human-readable label for reports and the KPI panel.

description

Optional one-line explanation of what the metric measures.

unit

Optional unit label (e.g. "%", "edges"); empty for a bare number.

systemValue

The single whole-graph value, or null if the metric is per-module only.

moduleValues

Per-module values keyed by module Gradle path; empty if the metric is system-only.