github.com/twilio/twilio-go@v1.20.1/rest/taskrouter/v1/model_taskrouter_v1_event.go (about)

     1  /*
     2   * This code was generated by
     3   * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
     4   *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
     5   *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
     6   *
     7   * Twilio - Taskrouter
     8   * This is the public Twilio REST API.
     9   *
    10   * NOTE: This class is auto generated by OpenAPI Generator.
    11   * https://openapi-generator.tech
    12   * Do not edit the class manually.
    13   */
    14  
    15  package openapi
    16  
    17  import (
    18  	"time"
    19  )
    20  
    21  // TaskrouterV1Event struct for TaskrouterV1Event
    22  type TaskrouterV1Event struct {
    23  	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Event resource.
    24  	AccountSid *string `json:"account_sid,omitempty"`
    25  	// The SID of the resource that triggered the event.
    26  	ActorSid *string `json:"actor_sid,omitempty"`
    27  	// The type of resource that triggered the event.
    28  	ActorType *string `json:"actor_type,omitempty"`
    29  	// The absolute URL of the resource that triggered the event.
    30  	ActorUrl *string `json:"actor_url,omitempty"`
    31  	// A description of the event.
    32  	Description *string `json:"description,omitempty"`
    33  	// Data about the event. For more information, see [Event types](https://www.twilio.com/docs/taskrouter/api/event#event-types).
    34  	EventData *interface{} `json:"event_data,omitempty"`
    35  	// The time the event was sent, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    36  	EventDate *time.Time `json:"event_date,omitempty"`
    37  	// The time the event was sent in milliseconds.
    38  	EventDateMs *int64 `json:"event_date_ms,omitempty"`
    39  	// The identifier for the event.
    40  	EventType *string `json:"event_type,omitempty"`
    41  	// The SID of the object the event is most relevant to, such as a TaskSid, ReservationSid, or a  WorkerSid.
    42  	ResourceSid *string `json:"resource_sid,omitempty"`
    43  	// The type of object the event is most relevant to, such as a Task, Reservation, or a Worker).
    44  	ResourceType *string `json:"resource_type,omitempty"`
    45  	// The URL of the resource the event is most relevant to.
    46  	ResourceUrl *string `json:"resource_url,omitempty"`
    47  	// The unique string that we created to identify the Event resource.
    48  	Sid *string `json:"sid,omitempty"`
    49  	// Where the Event originated.
    50  	Source *string `json:"source,omitempty"`
    51  	// The IP from which the Event originated.
    52  	SourceIpAddress *string `json:"source_ip_address,omitempty"`
    53  	// The absolute URL of the Event resource.
    54  	Url *string `json:"url,omitempty"`
    55  	// The SID of the Workspace that contains the Event.
    56  	WorkspaceSid *string `json:"workspace_sid,omitempty"`
    57  }