Documentation
¶
Overview ¶
Package log contains auto-generated files. DO NOT MODIFY
Package log contains auto-generated files. 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 a specific log resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/logs for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the log client
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchLogResponse, error)
Fetch retrieves a log resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/logs#fetch-a-log-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) FetchWithContext ¶
func (c Client) FetchWithContext(context context.Context) (*FetchLogResponse, error)
FetchWithContext retrieves a log resource See https://www.twilio.com/docs/runtime/functions-assets-api/api/logs#fetch-a-log-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the log resources
type FetchLogResponse ¶
type FetchLogResponse struct { AccountSid string `json:"account_sid"` BuildSid string `json:"build_sid"` DateCreated time.Time `json:"date_created"` DeploymentSid string `json:"deployment_sid"` EnvironmentSid string `json:"environment_sid"` FunctionSid string `json:"function_sid"` Level string `json:"level"` Message string `json:"message"` RequestSid string `json:"request_sid"` ServiceSid string `json:"service_sid"` Sid string `json:"sid"` URL string `json:"url"` }
FetchLogResponse defines the response fields for the retrieved log entry