Documentation
¶
Overview ¶
Package event contains auto-generated files. DO NOT MODIFY
Package event contains auto-generated files. DO NOT MODIFY
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for managing a specific event resource See https://www.twilio.com/docs/usage/monitor-events for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the event client
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchEventResponse, error)
Fetch retrieves an event resource See https://www.twilio.com/docs/usage/monitor-events#fetch-an-event-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) FetchWithContext ¶
func (c Client) FetchWithContext(context context.Context) (*FetchEventResponse, error)
FetchWithContext retrieves an event resource See https://www.twilio.com/docs/usage/monitor-events#fetch-an-event-resource for more details
type ClientProperties ¶
type ClientProperties struct {
Sid string
}
ClientProperties are the properties required to manage the event resources
type FetchEventResponse ¶
type FetchEventResponse struct { AccountSid string `json:"account_sid"` ActorSid string `json:"actor_sid"` ActorType string `json:"actor_type"` Description *string `json:"description,omitempty"` EventData map[string]interface{} `json:"event_data"` EventDate time.Time `json:"event_date"` EventType string `json:"event_type"` ResourceSid string `json:"resource_sid"` ResourceType string `json:"resource_type"` Sid string `json:"sid"` Source string `json:"source"` SourceIPAddress string `json:"source_ip_address"` URL string `json:"url"` }
FetchEventResponse defines the response fields for the retrieved event