github.com/twilio/twilio-go@v1.20.1/rest/monitor/v1/model_monitor_v1_alert.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  // MonitorV1Alert struct for MonitorV1Alert
    22  type MonitorV1Alert struct {
    23  	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Alert resource.
    24  	AccountSid *string `json:"account_sid,omitempty"`
    25  	// The text of the alert.
    26  	AlertText *string `json:"alert_text,omitempty"`
    27  	// The API version used when the alert was generated.  Can be empty for events that don't have a specific API version.
    28  	ApiVersion *string `json:"api_version,omitempty"`
    29  	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    30  	DateCreated *time.Time `json:"date_created,omitempty"`
    31  	// The date and time in GMT when the alert was generated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format.  Due to buffering, this can be different than `date_created`.
    32  	DateGenerated *time.Time `json:"date_generated,omitempty"`
    33  	// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    34  	DateUpdated *time.Time `json:"date_updated,omitempty"`
    35  	// The error code for the condition that generated the alert. See the [Error Dictionary](https://www.twilio.com/docs/api/errors) for possible causes and solutions to the error.
    36  	ErrorCode *string `json:"error_code,omitempty"`
    37  	// The log level.  Can be: `error`, `warning`, `notice`, or `debug`.
    38  	LogLevel *string `json:"log_level,omitempty"`
    39  	// The URL of the page in our [Error Dictionary](https://www.twilio.com/docs/api/errors) with more information about the error condition.
    40  	MoreInfo *string `json:"more_info,omitempty"`
    41  	// The method used by the request that generated the alert. If the alert was generated by a request we made to your server, this is the method we used. If the alert was generated by a request from your application to our API, this is the method your application used.
    42  	RequestMethod *string `json:"request_method,omitempty"`
    43  	// The URL of the request that generated the alert. If the alert was generated by a request we made to your server, this is the URL on your server that generated the alert. If the alert was generated by a request from your application to our API, this is the URL of the resource requested.
    44  	RequestUrl *string `json:"request_url,omitempty"`
    45  	// The SID of the resource for which the alert was generated.  For instance, if your server failed to respond to an HTTP request during the flow of a particular call, this value would be the SID of the server.  This value is empty if the alert was not generated for a particular resource.
    46  	ResourceSid *string `json:"resource_sid,omitempty"`
    47  	// The unique string that we created to identify the Alert resource.
    48  	Sid *string `json:"sid,omitempty"`
    49  	// The absolute URL of the Alert resource.
    50  	Url *string `json:"url,omitempty"`
    51  	// The SID of the service or resource that generated the alert. Can be `null`.
    52  	ServiceSid *string `json:"service_sid,omitempty"`
    53  }