public FunctionConfig getFunctionConfig()

in streampipes-pipeline-elements-examples-processors-jvm/src/main/java/org/apache/streampipes/function/example/FunctionPublishExample.java [76:91]


  public FunctionConfig getFunctionConfig() {

    return FunctionConfigBuilder
        .create(FunctionId.from(FUNCTION_ID, 1))
        .withOutputStream(DataStreamBuilder.create(STREAM_APP_ID, "My Function Stream", "")
            .property(EpProperties.timestampProperty("timestamp"))
            .property(EpProperties.stringEp(
                Labels.from("my-example-property", "test", "test"),
                "example-property",
                SO.TEXT,
                PropertyScope.MEASUREMENT_PROPERTY))
            .format(Formats.jsonFormat())
            .protocol(Protocols.kafka("nats", 9094, STREAM_APP_ID))
            .build())
        .build();
  }