Documentation ¶
Overview ¶
Package real_time_statistics contains auto-generated files. DO NOT MODIFY
Package real_time_statistics 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 all workers real time statistics See https://www.twilio.com/docs/taskrouter/api/worker/statistics for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the real time statistics client
func (Client) Fetch ¶
func (c Client) Fetch(options *FetchRealTimeStatisticsOptions) (*FetchRealTimeStatisticsResponse, error)
Fetch retrieves real time statistics See https://www.twilio.com/docs/taskrouter/api/worker/statistics#fetch-real-time-worker-statistics 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, options *FetchRealTimeStatisticsOptions) (*FetchRealTimeStatisticsResponse, error)
FetchWithContext retrieves real time statistics See https://www.twilio.com/docs/taskrouter/api/worker/statistics#fetch-real-time-worker-statistics for more details
type ClientProperties ¶
type ClientProperties struct {
WorkspaceSid string
}
ClientProperties are the properties required to manage the real time statistics resources
type FetchActivityStatistic ¶
type FetchRealTimeStatisticsOptions ¶
type FetchRealTimeStatisticsOptions struct {
TaskChannel *string
}
FetchRealTimeStatisticsOptions defines the query options for the api operation
type FetchRealTimeStatisticsResponse ¶
type FetchRealTimeStatisticsResponse struct { AccountSid string `json:"account_sid"` ActivityStatistics []FetchActivityStatistic `json:"activity_statistics"` TotalWorkers int `json:"total_workers"` URL string `json:"url"` WorkspaceSid string `json:"workspace_sid"` }
FetchRealTimeStatisticsResponse defines the response fields for the retrieved real time statistics