---
title: "GET /eventAlertConditionRules/{id}"
method: GET
path: "/eventAlertConditionRules/{id}"
tags: ["Event Alert Rules"]
---

# GET /eventAlertConditionRules/{id}

`GET /eventAlertConditionRules/{id}`

Get details of a specific rule by id

## Path parameters

- `id` string, required

## Response `200`

Success, returns the rule details

- ApiEventAlertConditionRule — Encompasses all the user specified properties of a rule used to generate alerts.
  - `name` string — Name for the rule
  - `priority` integer — Defines the priority of the alert
  - `notes` string — A verbose explanation of the rule
  - `enabled` boolean — Whether rule is enabled
  - `cooldownSeconds` integer — Cooldown period (in seconds). If two events for the same actor and event type have event timestamps within this duration, only the first will trigger an alert while the second event will be suppressed. A value of 0 disables the cooldown checks.
  - `humanValidation` object
    - `enabled` boolean — If set to true, the alert will be validated by a human before being applied. This is useful for rules that are not 100% reliable and need human confirmation.
    - `service` 'eenV1' — The service that will be used for human validation. Currently, the only supported service is Eagle Eye Human Review, which is the default.
    - `maxWaitTimeSeconds` integer — The maximum time (in seconds) to wait for human validation before the alert is applied. If the human validation is not completed within this time, the alert will be applied automatically.
  - `eventFilter` EventFilter — A list of attributes of the event used to funnel down a specific set of events for any downstream action. This filtering construct is as such independent of VSP and quite generic
    - `eventTypes` string[] — List of event types allowed to be processed by this rule
    - `schedule` WeeklyIntervalScheduleAllRequired — It signifies a week long alert schedule. This schedule is effective according to actor's (user/camera/account) timezone. It allows setting different times for different days.
      - `sunday` Interval[], required
        - `start` string, required — Starting point of the interval. It should be in the range of 00:00 to 23:59 since this is the range for a day
        - `end` string, required — End point of the interval. It should be in the range of 00:00 to 23:59 since this is the range for the day
      - `monday` Interval[], required
        - `start` string, required — Starting point of the interval. It should be in the range of 00:00 to 23:59 since this is the range for a day
        - `end` string, required — End point of the interval. It should be in the range of 00:00 to 23:59 since this is the range for the day
      - `tuesday` Interval[], required
        - `start` string, required — Starting point of the interval. It should be in the range of 00:00 to 23:59 since this is the range for a day
        - `end` string, required — End point of the interval. It should be in the range of 00:00 to 23:59 since this is the range for the day
      - `wednesday` Interval[], required
        - `start` string, required — Starting point of the interval. It should be in the range of 00:00 to 23:59 since this is the range for a day
        - `end` string, required — End point of the interval. It should be in the range of 00:00 to 23:59 since this is the range for the day
      - `thursday` Interval[], required
        - `start` string, required — Starting point of the interval. It should be in the range of 00:00 to 23:59 since this is the range for a day
        - `end` string, required — End point of the interval. It should be in the range of 00:00 to 23:59 since this is the range for the day
      - `friday` Interval[], required
        - `start` string, required — Starting point of the interval. It should be in the range of 00:00 to 23:59 since this is the range for a day
        - `end` string, required — End point of the interval. It should be in the range of 00:00 to 23:59 since this is the range for the day
      - `saturday` Interval[], required
        - `start` string, required — Starting point of the interval. It should be in the range of 00:00 to 23:59 since this is the range for a day
        - `end` string, required — End point of the interval. It should be in the range of 00:00 to 23:59 since this is the range for the day
    - `resourceFilter` ResourceFilter — List of actors against which filtering to happen (camera/location/account)
      - `actors` ActorFilter[] — List of the actors for which events are checked.
        - `id` string — The id of the thing that caused the event This can be camera or location ID. If not supplied for any entry in the array, it is taken to mean as the entire account.
        - `type` 'camera' | 'location', required — Type of actor that caused the event.
  - `id` string — The system generated id of this rule resource
  - `createTimeStamp` string, date-time — Time at which the Alert Condition Rule was created.
  - `updateTimeStamp` string, date-time — Time at which the Alert Condition Rule was last updated.
  - `outputAlertTypes` string[] — Possible Alert Types that are producible by this rule. For a given event, what alert is produced depends on the configuration parameters of the rule and the event properties.
  - `endUserAccountId` string, nullable — The end user account this rule targets. Available only for a rule created by a reseller targeting an end user; `null` otherwise.

## Other responses

- `401` — You are not authenticated. Please authenticate and try again.
- `403` — You have no permission to access the specified resource.
- `404` — Referenced resource could not be found.
- `500` — Something went wrong in the server. Please try again.

---

[API](https://skmtc.net/eagleeyenetworks/apis/devices.md) · [All operations](https://skmtc.net/eagleeyenetworks/apis/devices/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/eagleeyenetworks/devices/revisions/df57313de545/schema)
