Class TransformStage
java.lang.Object
com.inductiveautomation.eventstream.gateway.stages.Stage
com.inductiveautomation.eventstream.gateway.stages.TransformStage
Transforms events based return value from user's script function.
Metrics:
{}.transform.received (Meter): Total events received
{}.transform.queueSize (Gauge)
{}.transform.processTimeNs (Histogram)
{}.transform.errors (Counter)
Metrics:
{}.transform.received (Meter): Total events received
{}.transform.queueSize (Gauge)
{}.transform.processTimeNs (Histogram)
{}.transform.errors (Counter)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.eventstream.gateway.stages.Stage
Stage.ProcessResult, Stage.Subscriber
-
Field Summary
FieldsFields inherited from class com.inductiveautomation.eventstream.gateway.stages.Stage
METRIC_ERROR_COUNT, METRIC_PROCESS_TIME, METRIC_QUEUED_EVENT_COUNT, METRIC_RECEIVED, processTimeNs, receivedMeter, STATE_LAST_EMITTED_EVENT_KEY, STATE_LAST_EVENT_KEY, STATE_TEST_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMetrics
(com.codahale.metrics.Snapshot processTimeNs) process
(StageEvent event) Provides record from previous stage.Methods inherited from class com.inductiveautomation.eventstream.gateway.stages.Stage
context, errorCount, forward, getDiagnostics, getErrors, getId, getMetrics, getReferenceLocation, getStatus, getTypeId, includeDiagnostics, log, onError, onSubscribed, onUnsubscribe, processTimeMostRecent, setIncludeDiagnostics, setStatus, subscribe
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
TransformStage
-
-
Method Details
-
getMetrics
- Overrides:
getMetrics
in classStage
-
process
Description copied from class:Stage
Provides record from previous stage. It's important to notify a subscriber of action to take (if any) once a record has been processed. Process is always called from the previous stages thread.
-