public class HealthMonitor
extends java.lang.Object
Constructor and Description |
---|
HealthMonitor(RestClient client) |
Modifier and Type | Method and Description |
---|---|
DiagnosticsRestRep |
getDiagnostics(java.util.List<java.lang.String> nodeIds)
Deprecated.
Replaced by
|
DiagnosticsRestRep |
getDiagnostics(java.util.List<java.lang.String> nodeIds,
boolean verbose)
Deprecated.
Replaced by
|
DiagnosticsRestRep |
getDiagnostics(java.util.List<java.lang.String> nodeIds,
java.util.List<java.lang.String> nodeNames)
Gets the diagnostic results for all virtual machines in a ViPR
controller appliance.
|
DiagnosticsRestRep |
getDiagnostics(java.util.List<java.lang.String> nodeIds,
java.util.List<java.lang.String> nodeNames,
boolean verbose)
Gets the diagnostic results for all virtual machines in a ViPR
controller appliance.
|
HealthRestRep |
getHealth()
Gets health of node and its services.
|
HealthRestRep |
getHealth(java.util.List<java.lang.String> nodeIds)
Deprecated.
Replaced by
|
HealthRestRep |
getHealth(java.util.List<java.lang.String> nodeIds,
java.util.List<java.lang.String> nodeNames)
Gets health of node and its services by node name.
|
StatsRestRep |
getStats()
Convenience method to get stats of all nodes.
|
StatsRestRep |
getStats(java.util.List<java.lang.String> nodeIds,
java.lang.Integer interval)
Deprecated.
Replaced by
|
StatsRestRep |
getStats(java.util.List<java.lang.String> nodeIds,
java.util.List<java.lang.String> nodeNames,
java.lang.Integer interval)
Get statistics of virtual machine and its active services Virtual machine
stats include memory usage, I/O for each device, load average numbers Service
stats include service memory usage, command that invoked it, file descriptors
count and other stats (uptime, start time, thread count).
|
StorageStats |
getStorageStats()
Get the current capacity for object, file and block storage.
|
public HealthMonitor(RestClient client)
public StatsRestRep getStats()
Get statistics of virtual machine and its active services Virtual machine stats include memory usage, I/O for each device, load average numbers Service stats include service memory usage, command that invoked it, file descriptors count and other stats (uptime, start time, thread count).
If interval value is passed it will return differential disk stats: difference between first report (contains stats for the time since system startup) and second report (stats collected during the interval since the first report).
API Call: GET /monitor/stats
@Deprecated public StatsRestRep getStats(java.util.List<java.lang.String> nodeIds, java.lang.Integer interval)
If interval value is passed it will return differential disk stats: difference between first report (contains stats for the time since system startup) and second report (stats collected during the interval since the first report).
API Call: GET /monitor/stats
getStats(List, List, Integer)
public StatsRestRep getStats(java.util.List<java.lang.String> nodeIds, java.util.List<java.lang.String> nodeNames, java.lang.Integer interval)
If interval value is passed it will return differential disk stats: difference between first report (contains stats for the time since system startup) and second report (stats collected during the interval since the first report).
API Call: GET /monitor/stats
public HealthRestRep getHealth()
Node health status: Good - when node is reachable and all its services are GOOD Unavailable - when node is not reachable Degraded - when node is reachable and any of its service is Unavailable/Degraded Node/syssvc Unavailable - when node is down or syssvc is not Unavailable on the node
Service health status: Good - when a service is up and running Unavailable - when a service is not running but is registered in coordinator Restarted - when service is restarting
API Call: GET /monitor/health
@Deprecated public HealthRestRep getHealth(java.util.List<java.lang.String> nodeIds)
Node health status: Good - when node is reachable and all its services are GOOD Unavailable - when node is not reachable Degraded - when node is reachable and any of its service is Unavailable/Degraded Node/syssvc Unavailable - when node is down or syssvc is not Unavailable on the node
Service health status: Good - when a service is up and running Unavailable - when a service is not running but is registered in coordinator Restarted - when service is restarting
API Call: GET /monitor/health
nodeIds
- Node ids for which health stats are collected.getHealth(List, List)
public HealthRestRep getHealth(java.util.List<java.lang.String> nodeIds, java.util.List<java.lang.String> nodeNames)
Node health status: Good - when node is reachable and all its services are GOOD Unavailable - when node is not reachable Degraded - when node is reachable and any of its service is Unavailable/Degraded Node/syssvc Unavailable - when node is down or syssvc is not Unavailable on the node
Service health status: Good - when a service is up and running Unavailable - when a service is not running but is registered in coordinator Restarted - when service is restarting
API Call: GET /monitor/health
nodeIds
- Node ids for which health stats are collected.nodeNames
- Node names for which health stats are collected.@Deprecated public DiagnosticsRestRep getDiagnostics(java.util.List<java.lang.String> nodeIds, boolean verbose)
API Call: GET /monitor/diagnostics
nodeIds
- Node ids for which diagnostic results are collected.verbose
- If true, will run command with -v option.getDiagnostics(List, List, boolean)
public DiagnosticsRestRep getDiagnostics(java.util.List<java.lang.String> nodeIds, java.util.List<java.lang.String> nodeNames, boolean verbose)
API Call: GET /monitor/diagnostics
nodeIds
- Node names for which diagnostic results are collected.nodeNames
- Node names for which diagnostic results are collected.verbose
- If true, will run command with -v option.@Deprecated public DiagnosticsRestRep getDiagnostics(java.util.List<java.lang.String> nodeIds)
nodeIds
- Node ids for which diagnostic results are collected.getDiagnostics(List, List)
public DiagnosticsRestRep getDiagnostics(java.util.List<java.lang.String> nodeIds, java.util.List<java.lang.String> nodeNames)
nodeIds
- Node ids for which diagnostic results are collected.nodeNames
- Node names for which diagnostic results are collected.public StorageStats getStorageStats()
API Call: GET /monitor/storage