Skip to content

Commit

Permalink
Add scopes to PropertiesInstrumentationData
Browse files Browse the repository at this point in the history
  • Loading branch information
akang31 committed Apr 16, 2024
1 parent a94871b commit 50ea382
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
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 = idToUsageDataMap;
scopes = 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 50ea382

Please sign in to comment.