summaryrefslogtreecommitdiff
path: root/ui/metrics/metrics.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/metrics/metrics.go')
-rw-r--r--ui/metrics/metrics.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/metrics/metrics.go b/ui/metrics/metrics.go
index a282e2030..6d6031649 100644
--- a/ui/metrics/metrics.go
+++ b/ui/metrics/metrics.go
@@ -248,6 +248,13 @@ func (m *Metrics) SetBuildCommand(cmd []string) {
m.metrics.BuildCommand = proto.String(strings.Join(cmd, " "))
}
+// AddChangedEnvironmentVariable adds the changed environment variable to
+// ChangedEnvironmentVariable field.
+func (m *Metrics) AddChangedEnvironmentVariable(ChangedEnvironmentVariable string) {
+ m.metrics.ChangedEnvironmentVariable = append(m.metrics.ChangedEnvironmentVariable,
+ ChangedEnvironmentVariable)
+}
+
// Dump exports the collected metrics from the executed build to the file at
// out path.
func (m *Metrics) Dump(out string) error {