public class CallHome
extends java.lang.Object
Constructor and Description |
---|
CallHome(RestClient client) |
Modifier and Type | Method and Description |
---|---|
Device |
getNodeDataForEsrs()
Retrieve virtual machine information required for ESRS setup.
|
TaskResourceRep |
sendAlert(java.lang.String source,
java.lang.Integer eventId,
java.util.List<java.lang.String> nodeIds,
java.util.List<java.lang.String> logNames,
java.lang.Integer severity,
java.lang.String start,
java.lang.String end,
java.lang.String msgRegex,
java.lang.Integer maxCount,
boolean multipleRequests,
EventParameters eventParameters)
Deprecated.
Replaced by
|
TaskResourceRep |
sendAlert(java.lang.String source,
java.lang.Integer eventId,
java.util.List<java.lang.String> nodeIds,
java.util.List<java.lang.String> nodeNames,
java.util.List<java.lang.String> logNames,
java.lang.Integer severity,
java.lang.String start,
java.lang.String end,
java.lang.String msgRegex,
java.lang.Integer maxCount,
boolean multipleRequests,
EventParameters eventParameters)
Create an alert event with error logs attached, which aid in troubleshooting
customer issues and sends it to ConnectEMC.
|
TaskResourceRep |
sendAlert(java.lang.String start,
java.lang.String end,
EventParameters eventParameters)
Create an alert event with error logs attached, which aid in troubleshooting
customer issues and sends it to ConnectEMC.
|
void |
sendHeartbeatEvent()
Send a heartbeat event to ConnectEMC with configuration properties.
|
void |
sendRegistrationEvent()
Send a registration event to ConnectEMC with configuration properties
|
public CallHome(RestClient client)
public void sendRegistrationEvent()
API Call: POST /callhome/registration
public void sendHeartbeatEvent()
API Call: POST /callhome/registration
public TaskResourceRep sendAlert(java.lang.String start, java.lang.String end, EventParameters eventParameters)
API Call: POST /callhome/alert
start
- The start datetime of the desired time window. Value is inclusive.
Allowed values: "yyyy-MM-dd_HH:mm:ss" formatted date or datetime
in ms. Default: Set to yesterday same timeend
- The end datetime of the desired time window. Value is inclusive.
Allowed values: "yyyy-MM-dd_HH:mm:ss" formatted date or datetime in ms.eventParameters
- The event parameters@Deprecated public TaskResourceRep sendAlert(java.lang.String source, java.lang.Integer eventId, java.util.List<java.lang.String> nodeIds, java.util.List<java.lang.String> logNames, java.lang.Integer severity, java.lang.String start, java.lang.String end, java.lang.String msgRegex, java.lang.Integer maxCount, boolean multipleRequests, EventParameters eventParameters)
API Call: POST /callhome/alert
source
- The service from which this API is invoked. Allowed values:
CONTROLLER, OBJECT Default: CONTROLLEReventId
- Event id for these alerts Allowed values: 999, 599 Default: 999nodeIds
- The ids of the nodes for which log data is collected.
Allowed values: standalone,syssvc-node1,syssvc-node2 etclogNames
- The names of the log files to process.severity
- The minimum severity level for a logged message. Allowed
values:0-9. Default value: 7start
- The start datetime of the desired time window. Value is inclusive.
Allowed values: "yyyy-MM-dd_HH:mm:ss" formatted date or datetime
in ms. Default: Set to yesterday same timeend
- The end datetime of the desired time window. Value is inclusive.
Allowed values: "yyyy-MM-dd_HH:mm:ss" formatted date or datetime in ms.msgRegex
- A regular expression to which the log message conforms.maxCount
- Maximum number of log messages to retrieve. This may return more
than max count, if there are more messages with same timestamp as
of the latest message. Value should be greater than 0.multipleRequests
- If true, will run multiple requests at same time.eventParameters
- The event parameterssendAlert(String, Integer, List, List, List, Integer, String, String, String, Integer, boolean, EventParameters)
public TaskResourceRep sendAlert(java.lang.String source, java.lang.Integer eventId, java.util.List<java.lang.String> nodeIds, java.util.List<java.lang.String> nodeNames, java.util.List<java.lang.String> logNames, java.lang.Integer severity, java.lang.String start, java.lang.String end, java.lang.String msgRegex, java.lang.Integer maxCount, boolean multipleRequests, EventParameters eventParameters)
API Call: POST /callhome/alert
source
- The service from which this API is invoked. Allowed values:
CONTROLLER, OBJECT Default: CONTROLLEReventId
- Event id for these alerts Allowed values: 999, 599 Default: 999nodeIds
- The ids of the nodes for which log data is collected.
Allowed values: standalone,syssvc-node1,syssvc-node2 etcnodeNames
- The names of the nodes for which log data is collected.
Allowed values: Current values of node_x_name propertieslogNames
- The names of the log files to process.severity
- The minimum severity level for a logged message. Allowed
values:0-9. Default value: 7start
- The start datetime of the desired time window. Value is inclusive.
Allowed values: "yyyy-MM-dd_HH:mm:ss" formatted date or datetime
in ms. Default: Set to yesterday same timeend
- The end datetime of the desired time window. Value is inclusive.
Allowed values: "yyyy-MM-dd_HH:mm:ss" formatted date or datetime in ms.msgRegex
- A regular expression to which the log message conforms.maxCount
- Maximum number of log messages to retrieve. This may return more
than max count, if there are more messages with same timestamp as
of the latest message. Value should be greater than 0.multipleRequests
- If true, will run multiple requests at same time.eventParameters
- The event parameterspublic Device getNodeDataForEsrs()
API Call: GET /callhome/esrs-device