Documentation ¶
Overview ¶
Package statistics contains auto-generated files. DO NOT MODIFY
Package 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 task statistics resources See https://www.twilio.com/docs/autopilot/api/task-statistics for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the statistics client
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchStatisticsResponse, error)
Fetch retrieves a task statistic resource See https://www.twilio.com/docs/autopilot/api/task-statistics#fetch-a-taskstatistics-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) (*FetchStatisticsResponse, error)
FetchWithContext retrieves a task statistic resource See https://www.twilio.com/docs/autopilot/api/task-statistics#fetch-a-taskstatistics-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the statistics resources
type FetchStatisticsResponse ¶
type FetchStatisticsResponse struct { AccountSid string `json:"account_sid"` AssistantSid string `json:"assistant_sid"` FieldsCount int `json:"fields_count"` SamplesCount int `json:"samples_count"` TaskSid string `json:"task_sid"` URL string `json:"url"` }
FetchStatisticsResponse defines the response fields for the retrieved task statistics