Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> |
httpConnector |
protected static TelemetryLogger |
LOG |
protected static Set<String> |
METRICS_TO_REPORT |
protected MetricsRegistry |
metricsRegistry |
protected boolean |
sendInitialMessage |
protected Data |
staticData |
protected static String |
TELEMETRY_INIT_MESSAGE_SENT_NAME |
protected String |
telemetryEndpoint |
protected TelemetryRegistry |
telemetryRegistry |
protected int |
telemetryRequestRetries |
protected int |
telemetryRequestTimeout |
Constructor and Description |
---|
TelemetrySendingTask(CommandExecutor commandExecutor,
String telemetryEndpoint,
int telemetryRequestRetries,
Data data,
org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> httpConnector,
TelemetryRegistry telemetryRegistry,
MetricsRegistry metricsRegistry,
int telemetryRequestTimeout,
boolean sendInitialMessage) |
Modifier and Type | Method and Description |
---|---|
protected long |
calculateMetricCount(ManagementService managementService,
Date startReportTime,
Date currentTime,
String metricName) |
protected Map<String,Metric> |
calculateMetrics() |
protected long |
calculateUniqueUserCount(CommandContext commandContext,
HistoryLevel historyLevel,
Date currentTime) |
protected void |
clearDynamicData() |
protected Map<String,Command> |
fetchAndResetCommandCounts() |
protected boolean |
isSuccessStatusCode(int statusCode) |
protected boolean |
isTelemetryEnabled() |
protected Date |
previousDay(Date date) |
protected Internals |
resolveDynamicData() |
protected void |
restoreDynamicData(Internals internals) |
void |
run() |
protected void |
sendData(Data dataToSend,
boolean isInitialMessage) |
protected void |
sendInitialMessage() |
protected void |
sendInitialMessage(CommandContext commandContext) |
protected void |
updateStaticData() |
protected void |
updateTelemetryFlag(boolean enabled) |
cancel, scheduledExecutionTime
protected static final TelemetryLogger LOG
protected static final String TELEMETRY_INIT_MESSAGE_SENT_NAME
protected CommandExecutor commandExecutor
protected String telemetryEndpoint
protected Data staticData
protected org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> httpConnector
protected int telemetryRequestRetries
protected TelemetryRegistry telemetryRegistry
protected MetricsRegistry metricsRegistry
protected int telemetryRequestTimeout
protected boolean sendInitialMessage
public TelemetrySendingTask(CommandExecutor commandExecutor, String telemetryEndpoint, int telemetryRequestRetries, Data data, org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> httpConnector, TelemetryRegistry telemetryRegistry, MetricsRegistry metricsRegistry, int telemetryRequestTimeout, boolean sendInitialMessage)
protected void sendInitialMessage()
protected void sendInitialMessage(CommandContext commandContext)
protected void updateStaticData()
protected boolean isTelemetryEnabled()
protected void sendData(Data dataToSend, boolean isInitialMessage)
protected boolean isSuccessStatusCode(int statusCode)
protected void clearDynamicData()
protected void restoreDynamicData(Internals internals)
protected Internals resolveDynamicData()
protected long calculateMetricCount(ManagementService managementService, Date startReportTime, Date currentTime, String metricName)
protected long calculateUniqueUserCount(CommandContext commandContext, HistoryLevel historyLevel, Date currentTime)
protected void updateTelemetryFlag(boolean enabled)
Copyright © 2022. All rights reserved.