-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b217941
commit edd1f3c
Showing
4 changed files
with
75 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 15 additions & 17 deletions
32
mission-control/docs/reference/notifications/_notification.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
|
||
| Field | Description | Scheme | Required | Templatable | | ||
| ---------- | ------------------------------------------------------------------ | ------------------------- | -------- | ----------- | | ||
| `events` | | [][Event](./events) | `true` || | ||
| `to` | Notification recipient | [`Recipient`](#recipient) | `true` || | ||
| `title` | Channel dependant e.g. subject for email | <CommonLink to="gotemplate">Go Template </CommonLink> | | `true` | | ||
| `template` |Channel dependant e.g. email body for email | <CommonLink to="gotemplate">Go Template </CommonLink> | | `true` | | ||
| `filter` | Filter out unwanted notifications | <CommonLink to="cel">CEL</CommonLink> | | | | ||
|
||
| Field | Description | Scheme | Required | Templatable | | ||
| ---------- | --------------------------------------------------------------------------------------------------- | ----------------------------------------------------- | -------- | ----------- | | ||
| `events` | | [[]Event](./events) | `true` | | | ||
| `to` | Notification recipient | [`Recipient`](#recipient) | `true` | | | ||
| `title` | Channel dependant e.g. subject for email | <CommonLink to="gotemplate">Go Template </CommonLink> | | `true` | | ||
| `template` | Channel dependant e.g. email body for email | <CommonLink to="gotemplate">Go Template </CommonLink> | | `true` | | ||
| `filter` | Filter out events. If the filter evaluates to true, the notification is processed - else discarded. | <CommonLink to="cel">CEL</CommonLink> | | | | ||
|
||
### Recipient | ||
|
||
| Field | Description | Schema | | ||
| ------------ | ---------------------------------------------------------------- | ------------------- | | ||
| `person` | | `UUID` or `email` of a person | | ||
| `team` | Every member of the team with an email will receive a notification | `UUID` or `name` of team | | ||
| `email` | Send an email to an external user | `email` | | ||
| `connection` | Connection to external service | `connection` | | ||
| `url` | Custom notification URL | [Channel](./channels) | | ||
| `properties` | *Only applicable if `url` is specified* | `map[string]string` | | ||
| Field | Description | Schema | | ||
| ------------ | ------------------------------------------------------------------ | ----------------------------- | | ||
| `person` | | `UUID` or `email` of a person | | ||
| `team` | Every member of the team with an email will receive a notification | `UUID` or `name` of team | | ||
| `email` | Send an email to an external user | `email` | | ||
| `connection` | Connection to external service | `connection` | | ||
| `url` | Custom notification URL | [Channel](./channels) | | ||
| `properties` | _Only applicable if `url` is specified_ | `map[string]string` | | ||
|
||
> Only one recipient can be specified |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters