Skip to content

Commit

Permalink
Merge pull request #722 from Netflix/send-scopes
Browse files Browse the repository at this point in the history
Add scopes to PropertiesInstrumentationData
  • Loading branch information
akang31 authored Apr 16, 2024
2 parents a94871b + 25cb4e5 commit 9d20251
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
package com.netflix.archaius.instrumentation;

import java.util.HashMap;
import java.util.Map;

/** Instrumentation data snapshot for usages captured since the last flush. */
public class PropertiesInstrumentationData {
private final Map<String, PropertyUsageData> idToUsageDataMap;
private final Map<String, String> scopes;

public PropertiesInstrumentationData(Map<String, PropertyUsageData> idToUsageDataMap) {
this(idToUsageDataMap, new HashMap<>());
}

public PropertiesInstrumentationData(Map<String, PropertyUsageData> idToUsageDataMap, Map<String, String> scopes) {
this.idToUsageDataMap = idToUsageDataMap;
this.scopes = scopes;
}

public Map<String, PropertyUsageData> getIdToUsageDataMap() {
return idToUsageDataMap;
}

public Map<String, String> getScopes() {
return scopes;
}
}

0 comments on commit 9d20251

Please sign in to comment.