use of com.sequenceiq.environment.environment.dto.telemetry.EnvironmentTelemetry in project cloudbreak by hortonworks.
the class TelemetryApiConverter method convert.
public EnvironmentTelemetry convert(TelemetryRequest request, Features accountFeatures, String accountId) {
EnvironmentTelemetry telemetry = null;
if (request != null) {
telemetry = new EnvironmentTelemetry();
telemetry.setLogging(createLoggingFromRequest(request.getLogging()));
telemetry.setMonitoring(createMonitoringFromRequest(request.getMonitoring(), accountId));
telemetry.setWorkloadAnalytics(createWorkloadAnalyticsFromRequest(request.getWorkloadAnalytics()));
telemetry.setFeatures(createEnvironmentFeaturesFromRequest(request.getFeatures(), accountFeatures, accountId));
telemetry.setFluentAttributes(new HashMap<>(request.getFluentAttributes()));
}
return telemetry;
}
use of com.sequenceiq.environment.environment.dto.telemetry.EnvironmentTelemetry in project cloudbreak by hortonworks.
the class TelemetryApiConverter method convert.
public EnvironmentTelemetry convert(TelemetryRequest request, Features accountFeatures) {
EnvironmentTelemetry telemetry = null;
if (request != null) {
telemetry = new EnvironmentTelemetry();
telemetry.setLogging(createLoggingFromRequest(request.getLogging()));
telemetry.setWorkloadAnalytics(createWorkloadAnalyticsFromRequest(request.getWorkloadAnalytics()));
telemetry.setFeatures(createEnvironmentFeaturesFromRequest(request.getFeatures(), accountFeatures));
telemetry.setFluentAttributes(new HashMap<>(request.getFluentAttributes()));
}
return telemetry;
}
Aggregations