Safe Haskell | None |
---|---|
Language | Haskell2010 |
Email Filters are a set of rules that are applied to triggering email's body, subject and from address. It only applies to generic_email kind of Services. The way multiple filters are combined depends on the email_filter_mode attribute of the service.
See: http://developer.pagerduty.com/documentation/rest/services/email_filters
- createEmailFilter :: ServiceId -> Request EmailFilterInfo s EmailFilter
- updateEmailFilter :: ServiceId -> EmailFilterId -> Request EmailFilterInfo s Empty
- deleteEmailFilter :: ServiceId -> EmailFilterId -> Request Empty s Empty
- data MatchMode
- class HasEmailFilterInfo a where
- data EmailFilterInfo
- data EmailFilter
- efId :: Lens' EmailFilter EmailFilterId
Create Email Filter
createEmailFilter :: ServiceId -> Request EmailFilterInfo s EmailFilter Source #
Create a new Email Filter for the specified service.
POST /services/:service_id/email_filters
See: http://developer.pagerduty.com/documentation/rest/services/email_filters/create
Update Email Filter
updateEmailFilter :: ServiceId -> EmailFilterId -> Request EmailFilterInfo s Empty Source #
Update an existing Email Filter.
PUT /services/:service_id/email_filters/:id
See: http://developer.pagerduty.com/documentation/rest/services/email_filters/update
Delete Email Filter
deleteEmailFilter :: ServiceId -> EmailFilterId -> Request Empty s Empty Source #
Delete an existing Email Filter.
DELETE /services/:service_id/email_filters/:id
See: http://developer.pagerduty.com/documentation/rest/services/email_filters/delete
Types
class HasEmailFilterInfo a where Source #
emailFilterInfo :: Lens' a EmailFilterInfo Source #
efSubjectMode :: Lens' a (Maybe MatchMode) Source #
One of always, match, no-match, which, respectively, means to not filter the email trigger by subject, filter it if the email subject matches the given regex, or filter if it doesn't match the given regex.
Default: always.
efSubjectRegex :: Lens' a (Maybe Text) Source #
The regex to be used when subject_mode is match or no-match. It is a required parameter on such cases.
efBodyMode :: Lens' a (Maybe MatchMode) Source #
One of always, match, no-match, which, respectively, means to not filter the email trigger by body, filter it if the body email matches the given regex, or filter if it doesn't match the given regex.
Default: always.
efBodyRegex :: Lens' a (Maybe Text) Source #
The regex to be used when body_mode is match or no-match. It is a required parameter on such cases.
efFromEmailMode :: Lens' a (Maybe MatchMode) Source #
One of always, match, no-match, which, respectively, means to not filter the email trigger by its from address, filter it if the email from address matches the given regex, or filter if it doesn't match the given regex.
Default: always.
efFromEmailRegex :: Lens' a (Maybe Text) Source #
The regex to be used when from_email_mode is match or no-match. It is a required parameter on such cases.
data EmailFilterInfo Source #
data EmailFilter Source #
efId :: Lens' EmailFilter EmailFilterId Source #
The email filter ID.