@PublicAPI(stability=PRIVATE) public final class MonitorData extends Object
Note:
Creating monitor entries may become a lot easier once we've migrated to the SDK Entry class:
Entry entry = ...; entry.addAttribute("stringStat", "aString") .addAttribute("integerStat", 12345) .addAttribute("dnStat", DN.valueOf("dc=aDN");We could also envisage an annotation based approach where we determine the monitor content from annotated fields/methods in an object.
Modifier and Type | Class and Description |
---|---|
static interface |
MonitorData.MonitoringCleanups
Marker annotation used for monitoring cleanups to perform before releasing 6.0.
|
Constructor and Description |
---|
MonitorData()
Builds a MonitorData object by using the server's schema.
|
MonitorData(Schema schema)
Builds a MonitorData object by using the provided schema.
|
Modifier and Type | Method and Description |
---|---|
MonitorData |
add(String attrName,
Object attrValue)
Adds an attribute with the provided name and value.
|
MonitorData |
addAll(String attrName,
Iterable<?> attrValues)
Adds an attribute with the provided name and values.
|
String |
toString() |
public MonitorData()
public MonitorData(Schema schema)
schema
- the schema to use when building the monitor datapublic MonitorData add(String attrName, Object attrValue)
attrName
- the attribute nameattrValue
- the attribute valueMonitorData
object.public MonitorData addAll(String attrName, Iterable<?> attrValues)
attrName
- the attribute nameattrValues
- the attribute valuesMonitorData
object.Copyright 2010-2018 ForgeRock AS.