You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2020/04/08 20:59:57 UTC
[incubator-streampipes-extensions] branch dev updated: Add icon and
description for calculate duration
This is an automated email from the ASF dual-hosted git repository.
zehnder pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes-extensions.git
The following commit(s) were added to refs/heads/dev by this push:
new 7c777f1 Add icon and description for calculate duration
7c777f1 is described below
commit 7c777f12e230567e63832787aeeba32ab6a36fa5
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Wed Apr 8 22:59:32 2020 +0200
Add icon and description for calculate duration
---
.../value/duration/CalculateDurationController.java | 2 +-
.../icon.png | Bin 10249 -> 12389 bytes
.../documentation.md | 15 ++++++---------
.../icon.png | Bin 0 -> 13055 bytes
4 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/value/duration/CalculateDurationController.java b/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/value/duration/CalculateDurationController.java
index e545eec..dfd09ae 100644
--- a/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/value/duration/CalculateDurationController.java
+++ b/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/value/duration/CalculateDurationController.java
@@ -55,7 +55,7 @@ public class CalculateDurationController extends StandaloneEventProcessingDeclar
public DataProcessorDescription declareModel() {
return ProcessingElementBuilder.create("org.apache.streampipes.processors.transformation.jvm.duration-value")
.withLocales(Locales.EN)
- .withAssets(Assets.DOCUMENTATION)
+ .withAssets(Assets.DOCUMENTATION, Assets.ICON)
.requiredStream(StreamRequirementsBuilder.create()
.requiredPropertyWithUnaryMapping(EpRequirements.timestampReq(),
Labels.withId(START_TS_FIELD_ID),
diff --git a/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.csvmetadata/icon.png b/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.csvmetadata/icon.png
index 0da9649..70a1c91 100644
Binary files a/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.csvmetadata/icon.png and b/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.csvmetadata/icon.png differ
diff --git a/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.duration-value/documentation.md b/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.duration-value/documentation.md
index 481c30a..71eecab 100644
--- a/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.duration-value/documentation.md
+++ b/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.duration-value/documentation.md
@@ -27,22 +27,19 @@
## Description
This processor calculates the duration for a given stream with a start timestamp and an end timestamp.
-Add a detailed description here
***
## Required input
-
+Two timestamp fields
***
## Configuration
-Describe the configuration parameters here
-
-### 1st parameter
-
-
-### 2nd parameter
+* Start Timestamp: The first timestamp (t1)
+* End Timestamp: The second timestamp (t2)
+* Time Unit of the result
-## Output
\ No newline at end of file
+## Output
+Appends a new field with the difference of t2 and t1
\ No newline at end of file
diff --git a/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.duration-value/icon.png b/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.duration-value/icon.png
new file mode 100644
index 0000000..e52b42e
Binary files /dev/null and b/streampipes-processors-transformation-jvm/src/main/resources/org.apache.streampipes.processors.transformation.jvm.duration-value/icon.png differ