Skip to content

Instantly share code, notes, and snippets.

@billy-bacon
Created December 13, 2013 17:08
Show Gist options
  • Save billy-bacon/7947614 to your computer and use it in GitHub Desktop.
Save billy-bacon/7947614 to your computer and use it in GitHub Desktop.
<route id="patronBorrowsAvailableTimer">
<from uri="{{borrows.available.notification.timer}}"/>
<log message="start" loggingLevel="INFO"/>
<wireTap uri="{{cloud.watch.out}}" copy="false">
<!-- this adds a cloud watch metric -->
<setHeader headerName="metricName"><constant>PatronBorrowsAvailableTimer</constant></setHeader>
<setHeader headerName="metricUnit"><constant>Count</constant></setHeader>
<setHeader headerName="metricValue"><constant>1</constant></setHeader>
</wireTap>
<setBody>
<constant>start patron device retrieval</constant>
</setBody>
<to uri="{{borrows.available.trigger.out}}"/>
<log message="end" loggingLevel="INFO"/>
</route>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment