All URIs are relative to https://monitor.twilio.com
Method | HTTP request | Description |
---|---|---|
FetchAlert | Get /v1/Alerts/{Sid} | |
ListAlert | Get /v1/Alerts |
MonitorV1AlertInstance FetchAlert(ctx, Sid)
Name | Type | Description |
---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
Sid | string | The SID of the Alert resource to fetch. |
Other parameters are passed through a pointer to a FetchAlertParams struct
Name | Type | Description |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]MonitorV1Alert ListAlert(ctx, optional)
This endpoint does not need any path parameter.
Other parameters are passed through a pointer to a ListAlertParams struct
Name | Type | Description |
---|---|---|
LogLevel | string | Only show alerts for this log-level. Can be: error , warning , notice , or debug . |
StartDate | time.Time | Only include alerts that occurred on or after this date and time. Specify the date and time in GMT and format as YYYY-MM-DD or YYYY-MM-DDThh:mm:ssZ . Queries for alerts older than 30 days are not supported. |
EndDate | time.Time | Only include alerts that occurred on or before this date and time. Specify the date and time in GMT and format as YYYY-MM-DD or YYYY-MM-DDThh:mm:ssZ . Queries for alerts older than 30 days are not supported. |
PageSize | int | How many resources to return in each list page. The default is 50, and the maximum is 1000. |
Limit | int | Max number of records to return. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]