-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #722 from Netflix/send-scopes
Add scopes to PropertiesInstrumentationData
- Loading branch information
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...ore/src/main/java/com/netflix/archaius/instrumentation/PropertiesInstrumentationData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |