Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


PowerTrack Rule Management

Ruby Examples

The following Ruby snippets demonstrate how to perform the following rule-management operations on the PowerTrack Rules API.

  • Add a rule to a stream
  • Delete a rule from a stream
  • Retrieve the list of rules for a stream

Each snippet provides examples of what the stream URL should look like for each type described above, and includes specific lines that may be commented or uncommented depending on the type of stream you are using. The files for adding a rule and retrieving a rule will work for PowerTrack 1.0 and 2.0 while there is a separate file for each version of the script to delete a rule.