Attributes
The Messaging API supports the generic concept of a message, and each implementation interprets attributes in context. For example, “to:” in the context of a Slack message references the intended channel, whereas “to:” in the context of an email(SMTP) references the intended email address of its recipient.Message Attribute | Description |
---|---|
id | An application specific id for tracking the message. Must be unique. |
type | The type of message to send, one of the following: ● log ● smtp ● slack ● pagerduty |
to | One or more destinations for the message, as a list |
from | Who/what the message is from |
subject | The subject of the message |
body | The main body of the message |
schedule | Used to pass messages at a later time, or at a recurring basis. |
messageServiceParams | Passes a map of any service-specific parameters, such as the user name and password |