# Alerts

The available properties sitting under alerts in the .baselime.yml.

# Start listing the alerts. Alerts are represented as an object where the key is the reference (ref) of the alert,
# and the value is an object describing the alert 
  # Reference (ref) of the alert
    # Required: Name of the alert
    name: demo name
    # Optional: Description of the alert
    description: demo description
    # Required: Alert parameters
      # Required: The reference (ref) of query to run on at regular intervals for the alert. This query must be within the same application as the alert. 
      # Please note that if the query has multiple calculations, the alert will be based off the first listed calculation in the array of calculations of the query
      query: ref-of-an-existing-query

      # Required: The frequency reprensents how often, in minutes, to check for the threshold condition
      frequency: 30

      # Required: The duration is the time range, in minutes, of data that the alert will check. 
      duration: 30
      # Required: The threshold is a string representing the condition to be met to trigger an alert
      threshold: :> 200
      # Required: Channels are the references (ref) of the recipients to notify when the threshold condition is met. All channels must be within the same application as the alert 
        - developers

# Alert threshold

The alert threshold is a string that can be represented as :operation value

  • operation: an operation used to compare the first results of the query against the value. For further details, please check the list of accepted operations.
  • value: the value to compare the first result of the query against.