Table of Contents

Search

  1. Preface
  2. RulePoint
  3. RulePoint Concepts
  4. Using RulePoint
  5. RulePoint Objects
  6. Working with Topics
  7. Working with Connections
  8. Working with Sources
  9. Working with Responders
  10. Working with Responses
  11. Working with Watchlists
  12. Working with Analytics
  13. DRQL
  14. Working with Rules
  15. Working with Alerts
  16. Setting Access Controls
  17. Troubleshooting RulePoint Issues
  18. Connecting to an Ultra Messaging Application
  19. Creating an Ultra Messaging JMS Source

User Guide

User Guide

AddToDate Analytic

AddToDate Analytic

Use the AddToDate analytic to add years, months, days, hours, minutes, or seconds to a given date.
The following table defines the properties of an AddToDate analytic:
Property
Description
Name
The name of the AddToDate analytic. This must be a unique name.
Description
Optional. The description of the analytic.
Type
Select AddToDate Analytic.
Unit
Select years, months, days, hours, minutes, or seconds.
Condition Evaluation Required
Specifies whether the result of the analytic is part of conditional evaluation within a rule. Set to "false" if the result of the analytic can be used only for enrichment. Default is True.
Cache Duration
Time period, in seconds, for which the result of the analytic will be cached.

Example

Create an AddToDate analytic of name "add2date" and choose the units as "years."
The date format must be in Java SimpleDateFormat.
when 1 addDate ad with add2date(ad.datevalue,ad.dateformat,ad.count) as dateadd = "12/01/2038" then response with body = “value of date add ${dateadd}”
The following table describes the result for the event property value that you pass:
Event Property Value
Description
Result
ad.datevalue= 12/01/2013
ad.dateformat= MM/dd/yyyy*
ad.count=25
Adds 25 years to the date.
2/01/2038

0 COMMENTS

We’d like to hear from you!