brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From drigodwin <>
Subject [GitHub] brooklyn-docs pull request #160: Add separate enrichers page and combine pol...
Date Tue, 04 Apr 2017 21:23:18 GMT
Github user drigodwin commented on a diff in the pull request:
    --- Diff: guide/java/ ---
    @@ -0,0 +1,150 @@
    +title: Enrichers
    +layout: website-normal
    +toc: ../guide_toc.json
    +categories: [use, guide, defining-applications]
    +Enrichers provide advanced manipulation of an entity's sensor values.
    +#### Transformer
    +- org.apache.brooklyn.enricher.stock.Transformer
    +Transforms attributes of an entity.
    +{% highlight yaml %}
    +- type: org.apache.brooklyn.enricher.stock.Transformer
    +  brooklyn.config:
    +    enricher.sourceSensor: $brooklyn:sensor("urls.tcp.string")
    +    enricher.targetSensor: $brooklyn:sensor("urls.tcp.withBrackets")
    +    enricher.targetValue: $brooklyn:formatString("[%s]", $brooklyn:attributeWhenReady("urls.tcp.string"))
    +{% endhighlight %}
    +#### Propagator
    +- org.apache.brooklyn.enricher.stock.Propagator
    +Use propagator to duplicate one sensor as another, giving the supplied sensor mapping.
    +The other use of Propagator is where you specify a producer (using `$brooklyn:entity(...)`
as below)
    +from which to take sensors; in that mode you can specify `propagate` as a list of sensors
whose names are unchanged,
    +instead of (or in addition to) this map
    --- End diff --
    Missing `.`

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message