Package org.pipecraft.infra.monitoring
Interface JsonMonitorable
-
- All Known Subinterfaces:
ActionStatsCollector<E>,Sampler<T>
- All Known Implementing Classes:
AbstractActionStatsCollector,ActionStats,ActionStatsMap,BlockingActionStatsCollector,BlockingSampler,EventsCollector,InaccurateSampler,JsonMonitorableMerger,JsonMonitorableWrapper,MonitoringTree,NonBlockingActionStatsCollector,Retrier,SystemHealthMonitorable,UnboundedEventsCollector
public interface JsonMonitorableTo be implemented by classes that can "export" their state (or part of it) as Json. Supports hierarchy.- Author:
- Eyal Schneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Map<String,? extends JsonMonitorable>getChildren()default net.minidev.json.JSONObjectgetFullMetrics()net.minidev.json.JSONObjectgetOwnMetrics()
-
-
-
Method Detail
-
getOwnMetrics
net.minidev.json.JSONObject getOwnMetrics()
- Returns:
- The json string describing the entity, not including the child entities.
-
getChildren
Map<String,? extends JsonMonitorable> getChildren()
- Returns:
- The monitorable children of this entity, as [id, JsonExportable] pairs. Using this method, the framework can manage a complete tree to be monitored, where every entity has a unique path.
-
getFullMetrics
default net.minidev.json.JSONObject getFullMetrics()
- Returns:
- The json representation of this monitorable, including own metrics and children
-
-