cumulative_statistics

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

This is an autogenerated file. DO NOT MODIFY

This is an autogenerated file. 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 workflow cumulative statistics See https://www.twilio.com/docs/taskrouter/api/workflow-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/workflow-statistics#workflow-cumulative-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/workflow-statistics#workflow-cumulative-statistics for more details

type ClientProperties

type ClientProperties struct {
	WorkflowSid  string
	WorkspaceSid string
}

ClientProperties are the properties required to manage the cumulative statistics resources

type FetchCumulativeStatisticsOptions

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

FetchCumulativeStatisticsOptions defines the query options for the api operation

type FetchCumulativeStatisticsResponse

type FetchCumulativeStatisticsResponse struct {
	AccountSid                string                    `json:"account_sid"`
	AvgTaskAcceptanceTime     int                       `json:"avg_task_acceptance_time"`
	EndTime                   time.Time                 `json:"end_time"`
	ReservationsAccepted      int                       `json:"reservations_accepted"`
	ReservationsCanceled      int                       `json:"reservations_canceled"`
	ReservationsCompleted     *int                      `json:"reservations_completed,omitempty"`
	ReservationsCreated       int                       `json:"reservations_created"`
	ReservationsRejected      int                       `json:"reservations_rejected"`
	ReservationsRescinded     int                       `json:"reservations_rescinded"`
	ReservationsTimedOut      int                       `json:"reservations_timed_out"`
	ReservationsWrapUp        int                       `json:"reservations_wrapup"`
	SplitByWaitTime           *map[string]FetchWaitTime `json:"split_by_wait_time,omitempty"`
	StartTime                 time.Time                 `json:"start_time"`
	TasksAssigned             *int                      `json:"tasks_assigned,omitempty"`
	TasksCanceled             int                       `json:"tasks_canceled"`
	TasksCompleted            int                       `json:"tasks_completed"`
	TasksDeleted              int                       `json:"tasks_deleted"`
	TasksEntered              int                       `json:"tasks_entered"`
	TasksMoved                int                       `json:"tasks_moved"`
	TasksTimedOutInWorkflow   int                       `json:"tasks_timed_out_in_workflow"`
	URL                       string                    `json:"url"`
	WaitDurationUntilAccepted FetchStatisticsBreakdown  `json:"wait_duration_until_accepted"`
	WaitDurationUntilCanceled FetchStatisticsBreakdown  `json:"wait_duration_until_canceled"`
	WorkflowSid               string                    `json:"workflow_sid"`
	WorkspaceSid              *string                   `json:"workspace_sid,omitempty"`
}

FetchCumulativeStatisticsResponse defines the response fields for the retrieved cumulative statistics

type FetchStatisticsBreakdown

type FetchStatisticsBreakdown struct {
	Avg   int `json:"avg"`
	Max   int `json:"max"`
	Min   int `json:"min"`
	Total int `json:"total"`
}

type FetchWaitTime

type FetchWaitTime struct {
	Above FetchWaitTimeTasks `json:"above"`
	Below FetchWaitTimeTasks `json:"below"`
}

type FetchWaitTimeTasks

type FetchWaitTimeTasks struct {
	ReservationsAccepted int `json:"reservations_accepted"`
	TasksCanceled        int `json:"tasks_canceled"`
}

Jump to

Keyboard shortcuts

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