cumulative_statistics

package
Version: v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package cumulative_statistics contains auto-generated files. DO NOT MODIFY

Package cumulative_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 cumulative 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 cumulative statistics client

func (Client) Fetch

Fetch retrieves cumulative statistics See https://www.twilio.com/docs/taskrouter/api/worker/statistics#fetch-cumulative-worker-statistics for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) FetchWithContext

FetchWithContext retrieves cumulative statistics See https://www.twilio.com/docs/taskrouter/api/worker/statistics#fetch-cumulative-worker-statistics for more details

type ClientProperties

type ClientProperties struct {
	WorkspaceSid string
}

ClientProperties are the properties required to manage the cumulative statistics resources

type FetchActivityDuration

type FetchActivityDuration struct {
	Avg          int    `json:"avg"`
	FriendlyName string `json:"friendly_name"`
	Max          int    `json:"max"`
	Min          int    `json:"min"`
	Sid          string `json:"sid"`
	Total        int    `json:"total"`
}

type FetchCumulativeStatisticsOptions

type FetchCumulativeStatisticsOptions struct {
	Minutes     *int
	StartDate   *time.Time
	EndDate     *time.Time
	TaskChannel *string
}

FetchCumulativeStatisticsOptions defines the query options for the api operation

type FetchCumulativeStatisticsResponse

type FetchCumulativeStatisticsResponse struct {
	AccountSid            string                  `json:"account_sid"`
	ActivityDurations     []FetchActivityDuration `json:"activity_durations"`
	EndTime               time.Time               `json:"end_time"`
	ReservationsAccepted  int                     `json:"reservations_accepted"`
	ReservationsCanceled  int                     `json:"reservations_canceled"`
	ReservationsCreated   int                     `json:"reservations_created"`
	ReservationsRejected  int                     `json:"reservations_rejected"`
	ReservationsRescinded int                     `json:"reservations_rescinded"`
	ReservationsTimedOut  int                     `json:"reservations_timed_out"`
	StartTime             time.Time               `json:"start_time"`
	URL                   string                  `json:"url"`
	WorkspaceSid          string                  `json:"workspace_sid"`
}

FetchCumulativeStatisticsResponse defines the response fields for the retrieved cumulative statistics

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL