Class Message
Extends
Resource.
Message Resource
Defined in: message.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Message(spire, data)
Represents a message in the spire api.
|
| Field Attributes | Field Name and Description |
|---|---|
|
Message content.
|
|
|
Actual data from the spire.io api.
|
|
|
Reference to spire object.
|
|
|
Timestamp (in microseconds) of the event.
|
|
|
Event type.
|
- Methods borrowed from class Resource:
- authorization, capabilities, capability, get, getIfCapable, mediaType, request, schema, update, url
Class Detail
Message(spire, data)
Represents a message in the spire api.
- Parameters:
- {object} spire
- Spire object
- {object} data
- Message data from the spire api
Field Detail
content
Message content.
data
Actual data from the spire.io api.
spire
Reference to spire object.
timestamp
Timestamp (in microseconds) of the event.
type
Event type. Will be "message".