@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.
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-2022 ForgeRock AS.