diff --git a/archaius2-core/src/main/java/com/netflix/archaius/instrumentation/PropertiesInstrumentationData.java b/archaius2-core/src/main/java/com/netflix/archaius/instrumentation/PropertiesInstrumentationData.java index 3717120a..c15098fa 100644 --- a/archaius2-core/src/main/java/com/netflix/archaius/instrumentation/PropertiesInstrumentationData.java +++ b/archaius2-core/src/main/java/com/netflix/archaius/instrumentation/PropertiesInstrumentationData.java @@ -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 idToUsageDataMap; + private final Map scopes; public PropertiesInstrumentationData(Map idToUsageDataMap) { + this(idToUsageDataMap, new HashMap<>()); + } + + public PropertiesInstrumentationData(Map idToUsageDataMap, Map scopes) { this.idToUsageDataMap = idToUsageDataMap; + this.scopes = scopes; } public Map getIdToUsageDataMap() { return idToUsageDataMap; } + + public Map getScopes() { + return scopes; + } }