use of com.sequenceiq.common.api.telemetry.response.MonitoringResponse in project cloudbreak by hortonworks.
the class TelemetryConverter method createMonitoringResponseFromSource.
private MonitoringResponse createMonitoringResponseFromSource(Telemetry telemetry) {
MonitoringResponse monitoringResponse = null;
if (telemetry.getMonitoring() != null) {
LOGGER.debug("Setting monitoring telemetry settings (response).");
Monitoring monitoring = telemetry.getMonitoring();
monitoringResponse = new MonitoringResponse();
monitoringResponse.setRemoteWriteUrl(monitoring.getRemoteWriteUrl());
}
return monitoringResponse;
}
use of com.sequenceiq.common.api.telemetry.response.MonitoringResponse in project cloudbreak by hortonworks.
the class TelemetryConverter method convert.
public TelemetryResponse convert(Telemetry telemetry) {
TelemetryResponse response = null;
if (telemetry != null) {
LoggingResponse loggingResponse = createLoggingResponseFromSource(telemetry);
MonitoringResponse monitoringResponse = createMonitoringResponseFromSource(telemetry);
WorkloadAnalyticsResponse waResponse = createWorkloadAnalyticsResponseFromSource(telemetry);
response = new TelemetryResponse();
response.setLogging(loggingResponse);
response.setMonitoring(monitoringResponse);
response.setWorkloadAnalytics(waResponse);
response.setFluentAttributes(telemetry.getFluentAttributes());
response.setRules(telemetry.getRules());
createFeaturesResponseFromSource(response, telemetry.getFeatures());
}
return response;
}
Aggregations