github.com/twilio/twilio-go@v1.20.1/rest/monitor/v1/model_monitor_v1_event.go (about)

     1  /*
     2   * This code was generated by
     3   * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
     4   *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
     5   *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
     6   *
     7   * Twilio - Monitor
     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  // MonitorV1Event struct for MonitorV1Event
    22  type MonitorV1Event 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 actor that caused the event, if available. Can be `null`.
    26  	ActorSid *string `json:"actor_sid,omitempty"`
    27  	// The type of actor that caused the event. Can be: `user` for a change made by a logged-in user in the Twilio Console, `account` for an event caused by an API request by an authenticating Account, `twilio-admin` for an event caused by a Twilio employee, and so on.
    28  	ActorType *string `json:"actor_type,omitempty"`
    29  	// A description of the event. Can be `null`.
    30  	Description *string `json:"description,omitempty"`
    31  	// An object with additional data about the event. The  contents depend on `event_type`. For example, event-types of the form `RESOURCE.updated`, this value contains a `resource_properties` dictionary that describes the previous and updated properties of the resource.
    32  	EventData *interface{} `json:"event_data,omitempty"`
    33  	// The date and time in GMT when the event was recorded specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    34  	EventDate *time.Time `json:"event_date,omitempty"`
    35  	// The event's type. Event-types are typically in the form: `RESOURCE_TYPE.ACTION`, where `RESOURCE_TYPE` is the type of resource that was affected and `ACTION` is what happened to it. For example, `phone-number.created`. For a full list of all event-types, see the [Monitor Event Types](https://www.twilio.com/docs/usage/monitor-events#event-types).
    36  	EventType *string `json:"event_type,omitempty"`
    37  	// The SID of the resource that was affected.
    38  	ResourceSid *string `json:"resource_sid,omitempty"`
    39  	// The type of resource that was affected. For a full list of all resource-types, see the [Monitor Event Types](https://www.twilio.com/docs/usage/monitor-events#event-types).
    40  	ResourceType *string `json:"resource_type,omitempty"`
    41  	// The unique string that we created to identify the Event resource.
    42  	Sid *string `json:"sid,omitempty"`
    43  	// The originating system or interface that caused the event.  Can be: `web` for events caused by user action in the Twilio Console, `api` for events caused by a request to our API, or   `twilio` for events caused by an automated or internal Twilio system.
    44  	Source *string `json:"source,omitempty"`
    45  	// The IP address of the source, if the source is outside the Twilio cloud. This value is `null` for events with `source` of `twilio`
    46  	SourceIpAddress *string `json:"source_ip_address,omitempty"`
    47  	// The absolute URL of the resource that was affected. Can be `null`.
    48  	Url *string `json:"url,omitempty"`
    49  	// The absolute URLs of related resources.
    50  	Links *map[string]interface{} `json:"links,omitempty"`
    51  }