Documentation
¶
Overview ¶
Package logging provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.0 DO NOT EDIT.
Index ¶
- Constants
- func NewBulkRegisterLoggersRequestWithApplicationVndAPIPlusJSONBody(server string, body BulkRegisterLoggersApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)
- func NewBulkRegisterLoggersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateLogGroupRequestWithApplicationVndAPIPlusJSONBody(server string, body CreateLogGroupApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)
- func NewCreateLogGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteLogGroupRequest(server string, id string) (*http.Request, error)
- func NewDeleteLoggerRequest(server string, id string) (*http.Request, error)
- func NewGetLogGroupRequest(server string, id string) (*http.Request, error)
- func NewGetLoggerRequest(server string, id string) (*http.Request, error)
- func NewListAllLoggerSourcesRequest(server string, params *ListAllLoggerSourcesParams) (*http.Request, error)
- func NewListLogGroupsRequest(server string) (*http.Request, error)
- func NewListLoggerSourcesRequest(server string, id string) (*http.Request, error)
- func NewListLoggersRequest(server string, params *ListLoggersParams) (*http.Request, error)
- func NewListLoggingUsageRequest(server string, params *ListLoggingUsageParams) (*http.Request, error)
- func NewListServicesRequest(server string) (*http.Request, error)
- func NewUpdateLogGroupRequestWithApplicationVndAPIPlusJSONBody(server string, id string, ...) (*http.Request, error)
- func NewUpdateLogGroupRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateLoggerRequestWithApplicationVndAPIPlusJSONBody(server string, id string, ...) (*http.Request, error)
- func NewUpdateLoggerRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- type BulkRegisterLoggersApplicationVndAPIPlusJSONRequestBody
- type BulkRegisterLoggersResponse
- type Client
- func (c *Client) BulkRegisterLoggersWithApplicationVndAPIPlusJSONBody(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) BulkRegisterLoggersWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateLogGroupWithApplicationVndAPIPlusJSONBody(ctx context.Context, body CreateLogGroupApplicationVndAPIPlusJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateLogGroupWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteLogGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteLogger(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLogGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLogger(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAllLoggerSources(ctx context.Context, params *ListAllLoggerSourcesParams, ...) (*http.Response, error)
- func (c *Client) ListLogGroups(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListLoggerSources(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListLoggers(ctx context.Context, params *ListLoggersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListLoggingUsage(ctx context.Context, params *ListLoggingUsageParams, ...) (*http.Response, error)
- func (c *Client) ListServices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateLogGroupWithApplicationVndAPIPlusJSONBody(ctx context.Context, id string, ...) (*http.Response, error)
- func (c *Client) UpdateLogGroupWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateLoggerWithApplicationVndAPIPlusJSONBody(ctx context.Context, id string, ...) (*http.Response, error)
- func (c *Client) UpdateLoggerWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) BulkRegisterLoggersWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, ...) (*BulkRegisterLoggersResponse, error)
- func (c *ClientWithResponses) BulkRegisterLoggersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*BulkRegisterLoggersResponse, error)
- func (c *ClientWithResponses) CreateLogGroupWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateLogGroupApplicationVndAPIPlusJSONRequestBody, ...) (*CreateLogGroupResponse, error)
- func (c *ClientWithResponses) CreateLogGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateLogGroupResponse, error)
- func (c *ClientWithResponses) DeleteLogGroupWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteLogGroupResponse, error)
- func (c *ClientWithResponses) DeleteLoggerWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteLoggerResponse, error)
- func (c *ClientWithResponses) GetLogGroupWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetLogGroupResponse, error)
- func (c *ClientWithResponses) GetLoggerWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetLoggerResponse, error)
- func (c *ClientWithResponses) ListAllLoggerSourcesWithResponse(ctx context.Context, params *ListAllLoggerSourcesParams, ...) (*ListAllLoggerSourcesResponse, error)
- func (c *ClientWithResponses) ListLogGroupsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListLogGroupsResponse, error)
- func (c *ClientWithResponses) ListLoggerSourcesWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListLoggerSourcesResponse, error)
- func (c *ClientWithResponses) ListLoggersWithResponse(ctx context.Context, params *ListLoggersParams, reqEditors ...RequestEditorFn) (*ListLoggersResponse, error)
- func (c *ClientWithResponses) ListLoggingUsageWithResponse(ctx context.Context, params *ListLoggingUsageParams, ...) (*ListLoggingUsageResponse, error)
- func (c *ClientWithResponses) ListServicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListServicesResponse, error)
- func (c *ClientWithResponses) UpdateLogGroupWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id string, ...) (*UpdateLogGroupResponse, error)
- func (c *ClientWithResponses) UpdateLogGroupWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*UpdateLogGroupResponse, error)
- func (c *ClientWithResponses) UpdateLoggerWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id string, ...) (*UpdateLoggerResponse, error)
- func (c *ClientWithResponses) UpdateLoggerWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*UpdateLoggerResponse, error)
- type ClientWithResponsesInterface
- type CreateLogGroupApplicationVndAPIPlusJSONRequestBody
- type CreateLogGroupResponse
- type DeleteLogGroupResponse
- type DeleteLoggerResponse
- type Error
- type ErrorResponse
- type GetLogGroupResponse
- type GetLoggerResponse
- type HttpRequestDoer
- type ListAllLoggerSourcesParams
- type ListAllLoggerSourcesResponse
- type ListLogGroupsResponse
- type ListLoggerSourcesResponse
- type ListLoggersParams
- type ListLoggersResponse
- type ListLoggingUsageParams
- type ListLoggingUsageResponse
- type ListServicesResponse
- type LogGroup
- type LogGroupLevel
- type LogGroupListResponse
- type LogGroupRequest
- type LogGroupResource
- type LogGroupResourceType
- type LogGroupResponse
- type Logger
- type LoggerBulkItem
- type LoggerBulkRequest
- type LoggerBulkResponse
- type LoggerLevel
- type LoggerListResponse
- type LoggerRequest
- type LoggerResource
- type LoggerResourceType
- type LoggerResponse
- type LoggerSource
- type LoggerSourceListResponse
- type LoggerSourceResource
- type LoggerSourceResourceType
- type RequestEditorFn
- type ServiceAttributes
- type ServiceListResponse
- type ServiceResource
- type ServiceResourceType
- type UpdateLogGroupApplicationVndAPIPlusJSONRequestBody
- type UpdateLogGroupResponse
- type UpdateLoggerApplicationVndAPIPlusJSONRequestBody
- type UpdateLoggerResponse
- type UsageAttributes
- type UsageListResponse
- type UsageResource
- type UsageResourceType
Constants ¶
const (
HTTPBearerScopes hTTPBearerContextKey = "HTTPBearer.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewBulkRegisterLoggersRequestWithApplicationVndAPIPlusJSONBody ¶
func NewBulkRegisterLoggersRequestWithApplicationVndAPIPlusJSONBody(server string, body BulkRegisterLoggersApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)
NewBulkRegisterLoggersRequestWithApplicationVndAPIPlusJSONBody calls the generic BulkRegisterLoggers builder with application/vnd.api+json body
func NewBulkRegisterLoggersRequestWithBody ¶
func NewBulkRegisterLoggersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewBulkRegisterLoggersRequestWithBody generates requests for BulkRegisterLoggers with any type of body
func NewCreateLogGroupRequestWithApplicationVndAPIPlusJSONBody ¶
func NewCreateLogGroupRequestWithApplicationVndAPIPlusJSONBody(server string, body CreateLogGroupApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)
NewCreateLogGroupRequestWithApplicationVndAPIPlusJSONBody calls the generic CreateLogGroup builder with application/vnd.api+json body
func NewCreateLogGroupRequestWithBody ¶
func NewCreateLogGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateLogGroupRequestWithBody generates requests for CreateLogGroup with any type of body
func NewDeleteLogGroupRequest ¶
NewDeleteLogGroupRequest generates requests for DeleteLogGroup
func NewDeleteLoggerRequest ¶
NewDeleteLoggerRequest generates requests for DeleteLogger
func NewGetLogGroupRequest ¶
NewGetLogGroupRequest generates requests for GetLogGroup
func NewGetLoggerRequest ¶
NewGetLoggerRequest generates requests for GetLogger
func NewListAllLoggerSourcesRequest ¶
func NewListAllLoggerSourcesRequest(server string, params *ListAllLoggerSourcesParams) (*http.Request, error)
NewListAllLoggerSourcesRequest generates requests for ListAllLoggerSources
func NewListLogGroupsRequest ¶
NewListLogGroupsRequest generates requests for ListLogGroups
func NewListLoggerSourcesRequest ¶
NewListLoggerSourcesRequest generates requests for ListLoggerSources
func NewListLoggersRequest ¶
func NewListLoggersRequest(server string, params *ListLoggersParams) (*http.Request, error)
NewListLoggersRequest generates requests for ListLoggers
func NewListLoggingUsageRequest ¶
func NewListLoggingUsageRequest(server string, params *ListLoggingUsageParams) (*http.Request, error)
NewListLoggingUsageRequest generates requests for ListLoggingUsage
func NewListServicesRequest ¶
NewListServicesRequest generates requests for ListServices
func NewUpdateLogGroupRequestWithApplicationVndAPIPlusJSONBody ¶
func NewUpdateLogGroupRequestWithApplicationVndAPIPlusJSONBody(server string, id string, body UpdateLogGroupApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)
NewUpdateLogGroupRequestWithApplicationVndAPIPlusJSONBody calls the generic UpdateLogGroup builder with application/vnd.api+json body
func NewUpdateLogGroupRequestWithBody ¶
func NewUpdateLogGroupRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateLogGroupRequestWithBody generates requests for UpdateLogGroup with any type of body
func NewUpdateLoggerRequestWithApplicationVndAPIPlusJSONBody ¶
func NewUpdateLoggerRequestWithApplicationVndAPIPlusJSONBody(server string, id string, body UpdateLoggerApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)
NewUpdateLoggerRequestWithApplicationVndAPIPlusJSONBody calls the generic UpdateLogger builder with application/vnd.api+json body
Types ¶
type BulkRegisterLoggersApplicationVndAPIPlusJSONRequestBody ¶
type BulkRegisterLoggersApplicationVndAPIPlusJSONRequestBody = LoggerBulkRequest
BulkRegisterLoggersApplicationVndAPIPlusJSONRequestBody defines body for BulkRegisterLoggers for application/vnd.api+json ContentType.
type BulkRegisterLoggersResponse ¶
type BulkRegisterLoggersResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationvndApiJSON200 *LoggerBulkResponse
ApplicationvndApiJSON400 *ErrorResponse
ApplicationvndApiJSON401 *ErrorResponse
ApplicationvndApiJSON404 *ErrorResponse
ApplicationvndApiJSON429 *ErrorResponse
}
func ParseBulkRegisterLoggersResponse ¶
func ParseBulkRegisterLoggersResponse(rsp *http.Response) (*BulkRegisterLoggersResponse, error)
ParseBulkRegisterLoggersResponse parses an HTTP response from a BulkRegisterLoggersWithResponse call
func (BulkRegisterLoggersResponse) ContentType ¶
func (r BulkRegisterLoggersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (BulkRegisterLoggersResponse) Status ¶
func (r BulkRegisterLoggersResponse) Status() string
Status returns HTTPResponse.Status
func (BulkRegisterLoggersResponse) StatusCode ¶
func (r BulkRegisterLoggersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) BulkRegisterLoggersWithApplicationVndAPIPlusJSONBody ¶
func (c *Client) BulkRegisterLoggersWithApplicationVndAPIPlusJSONBody(ctx context.Context, body BulkRegisterLoggersApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) BulkRegisterLoggersWithBody ¶
func (*Client) CreateLogGroupWithApplicationVndAPIPlusJSONBody ¶
func (c *Client) CreateLogGroupWithApplicationVndAPIPlusJSONBody(ctx context.Context, body CreateLogGroupApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateLogGroupWithBody ¶
func (*Client) DeleteLogGroup ¶
func (*Client) DeleteLogger ¶
func (*Client) GetLogGroup ¶
func (*Client) ListAllLoggerSources ¶
func (c *Client) ListAllLoggerSources(ctx context.Context, params *ListAllLoggerSourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListLogGroups ¶
func (*Client) ListLoggerSources ¶
func (*Client) ListLoggers ¶
func (c *Client) ListLoggers(ctx context.Context, params *ListLoggersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListLoggingUsage ¶
func (c *Client) ListLoggingUsage(ctx context.Context, params *ListLoggingUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListServices ¶
func (*Client) UpdateLogGroupWithApplicationVndAPIPlusJSONBody ¶
func (c *Client) UpdateLogGroupWithApplicationVndAPIPlusJSONBody(ctx context.Context, id string, body UpdateLogGroupApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateLogGroupWithBody ¶
func (*Client) UpdateLoggerWithApplicationVndAPIPlusJSONBody ¶
func (c *Client) UpdateLoggerWithApplicationVndAPIPlusJSONBody(ctx context.Context, id string, body UpdateLoggerApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// ListLogGroups request
ListLogGroups(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateLogGroupWithBody request with any body
CreateLogGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateLogGroupWithApplicationVndAPIPlusJSONBody(ctx context.Context, body CreateLogGroupApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteLogGroup request
DeleteLogGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLogGroup request
GetLogGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateLogGroupWithBody request with any body
UpdateLogGroupWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateLogGroupWithApplicationVndAPIPlusJSONBody(ctx context.Context, id string, body UpdateLogGroupApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAllLoggerSources request
ListAllLoggerSources(ctx context.Context, params *ListAllLoggerSourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListLoggers request
ListLoggers(ctx context.Context, params *ListLoggersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// BulkRegisterLoggersWithBody request with any body
BulkRegisterLoggersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
BulkRegisterLoggersWithApplicationVndAPIPlusJSONBody(ctx context.Context, body BulkRegisterLoggersApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteLogger request
DeleteLogger(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLogger request
GetLogger(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateLoggerWithBody request with any body
UpdateLoggerWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateLoggerWithApplicationVndAPIPlusJSONBody(ctx context.Context, id string, body UpdateLoggerApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListLoggerSources request
ListLoggerSources(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListServices request
ListServices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListLoggingUsage request
ListLoggingUsage(ctx context.Context, params *ListLoggingUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) BulkRegisterLoggersWithApplicationVndAPIPlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) BulkRegisterLoggersWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body BulkRegisterLoggersApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*BulkRegisterLoggersResponse, error)
func (*ClientWithResponses) BulkRegisterLoggersWithBodyWithResponse ¶
func (c *ClientWithResponses) BulkRegisterLoggersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BulkRegisterLoggersResponse, error)
BulkRegisterLoggersWithBodyWithResponse request with arbitrary body returning *BulkRegisterLoggersResponse
func (*ClientWithResponses) CreateLogGroupWithApplicationVndAPIPlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) CreateLogGroupWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateLogGroupApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLogGroupResponse, error)
func (*ClientWithResponses) CreateLogGroupWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateLogGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLogGroupResponse, error)
CreateLogGroupWithBodyWithResponse request with arbitrary body returning *CreateLogGroupResponse
func (*ClientWithResponses) DeleteLogGroupWithResponse ¶
func (c *ClientWithResponses) DeleteLogGroupWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteLogGroupResponse, error)
DeleteLogGroupWithResponse request returning *DeleteLogGroupResponse
func (*ClientWithResponses) DeleteLoggerWithResponse ¶
func (c *ClientWithResponses) DeleteLoggerWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteLoggerResponse, error)
DeleteLoggerWithResponse request returning *DeleteLoggerResponse
func (*ClientWithResponses) GetLogGroupWithResponse ¶
func (c *ClientWithResponses) GetLogGroupWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetLogGroupResponse, error)
GetLogGroupWithResponse request returning *GetLogGroupResponse
func (*ClientWithResponses) GetLoggerWithResponse ¶
func (c *ClientWithResponses) GetLoggerWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetLoggerResponse, error)
GetLoggerWithResponse request returning *GetLoggerResponse
func (*ClientWithResponses) ListAllLoggerSourcesWithResponse ¶
func (c *ClientWithResponses) ListAllLoggerSourcesWithResponse(ctx context.Context, params *ListAllLoggerSourcesParams, reqEditors ...RequestEditorFn) (*ListAllLoggerSourcesResponse, error)
ListAllLoggerSourcesWithResponse request returning *ListAllLoggerSourcesResponse
func (*ClientWithResponses) ListLogGroupsWithResponse ¶
func (c *ClientWithResponses) ListLogGroupsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListLogGroupsResponse, error)
ListLogGroupsWithResponse request returning *ListLogGroupsResponse
func (*ClientWithResponses) ListLoggerSourcesWithResponse ¶
func (c *ClientWithResponses) ListLoggerSourcesWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListLoggerSourcesResponse, error)
ListLoggerSourcesWithResponse request returning *ListLoggerSourcesResponse
func (*ClientWithResponses) ListLoggersWithResponse ¶
func (c *ClientWithResponses) ListLoggersWithResponse(ctx context.Context, params *ListLoggersParams, reqEditors ...RequestEditorFn) (*ListLoggersResponse, error)
ListLoggersWithResponse request returning *ListLoggersResponse
func (*ClientWithResponses) ListLoggingUsageWithResponse ¶
func (c *ClientWithResponses) ListLoggingUsageWithResponse(ctx context.Context, params *ListLoggingUsageParams, reqEditors ...RequestEditorFn) (*ListLoggingUsageResponse, error)
ListLoggingUsageWithResponse request returning *ListLoggingUsageResponse
func (*ClientWithResponses) ListServicesWithResponse ¶
func (c *ClientWithResponses) ListServicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListServicesResponse, error)
ListServicesWithResponse request returning *ListServicesResponse
func (*ClientWithResponses) UpdateLogGroupWithApplicationVndAPIPlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) UpdateLogGroupWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id string, body UpdateLogGroupApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLogGroupResponse, error)
func (*ClientWithResponses) UpdateLogGroupWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateLogGroupWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLogGroupResponse, error)
UpdateLogGroupWithBodyWithResponse request with arbitrary body returning *UpdateLogGroupResponse
func (*ClientWithResponses) UpdateLoggerWithApplicationVndAPIPlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) UpdateLoggerWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id string, body UpdateLoggerApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLoggerResponse, error)
func (*ClientWithResponses) UpdateLoggerWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateLoggerWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLoggerResponse, error)
UpdateLoggerWithBodyWithResponse request with arbitrary body returning *UpdateLoggerResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListLogGroupsWithResponse request
ListLogGroupsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListLogGroupsResponse, error)
// CreateLogGroupWithBodyWithResponse request with any body
CreateLogGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLogGroupResponse, error)
CreateLogGroupWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateLogGroupApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLogGroupResponse, error)
// DeleteLogGroupWithResponse request
DeleteLogGroupWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteLogGroupResponse, error)
// GetLogGroupWithResponse request
GetLogGroupWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetLogGroupResponse, error)
// UpdateLogGroupWithBodyWithResponse request with any body
UpdateLogGroupWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLogGroupResponse, error)
UpdateLogGroupWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id string, body UpdateLogGroupApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLogGroupResponse, error)
// ListAllLoggerSourcesWithResponse request
ListAllLoggerSourcesWithResponse(ctx context.Context, params *ListAllLoggerSourcesParams, reqEditors ...RequestEditorFn) (*ListAllLoggerSourcesResponse, error)
// ListLoggersWithResponse request
ListLoggersWithResponse(ctx context.Context, params *ListLoggersParams, reqEditors ...RequestEditorFn) (*ListLoggersResponse, error)
// BulkRegisterLoggersWithBodyWithResponse request with any body
BulkRegisterLoggersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BulkRegisterLoggersResponse, error)
BulkRegisterLoggersWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body BulkRegisterLoggersApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*BulkRegisterLoggersResponse, error)
// DeleteLoggerWithResponse request
DeleteLoggerWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteLoggerResponse, error)
// GetLoggerWithResponse request
GetLoggerWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetLoggerResponse, error)
// UpdateLoggerWithBodyWithResponse request with any body
UpdateLoggerWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLoggerResponse, error)
UpdateLoggerWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id string, body UpdateLoggerApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLoggerResponse, error)
// ListLoggerSourcesWithResponse request
ListLoggerSourcesWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListLoggerSourcesResponse, error)
// ListServicesWithResponse request
ListServicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListServicesResponse, error)
// ListLoggingUsageWithResponse request
ListLoggingUsageWithResponse(ctx context.Context, params *ListLoggingUsageParams, reqEditors ...RequestEditorFn) (*ListLoggingUsageResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateLogGroupApplicationVndAPIPlusJSONRequestBody ¶
type CreateLogGroupApplicationVndAPIPlusJSONRequestBody = LogGroupRequest
CreateLogGroupApplicationVndAPIPlusJSONRequestBody defines body for CreateLogGroup for application/vnd.api+json ContentType.
type CreateLogGroupResponse ¶
type CreateLogGroupResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationvndApiJSON201 *LogGroupResponse
ApplicationvndApiJSON400 *ErrorResponse
ApplicationvndApiJSON401 *ErrorResponse
ApplicationvndApiJSON404 *ErrorResponse
ApplicationvndApiJSON429 *ErrorResponse
}
func ParseCreateLogGroupResponse ¶
func ParseCreateLogGroupResponse(rsp *http.Response) (*CreateLogGroupResponse, error)
ParseCreateLogGroupResponse parses an HTTP response from a CreateLogGroupWithResponse call
func (CreateLogGroupResponse) ContentType ¶
func (r CreateLogGroupResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateLogGroupResponse) Status ¶
func (r CreateLogGroupResponse) Status() string
Status returns HTTPResponse.Status
func (CreateLogGroupResponse) StatusCode ¶
func (r CreateLogGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteLogGroupResponse ¶
type DeleteLogGroupResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationvndApiJSON400 *ErrorResponse
ApplicationvndApiJSON401 *ErrorResponse
ApplicationvndApiJSON404 *ErrorResponse
ApplicationvndApiJSON429 *ErrorResponse
}
func ParseDeleteLogGroupResponse ¶
func ParseDeleteLogGroupResponse(rsp *http.Response) (*DeleteLogGroupResponse, error)
ParseDeleteLogGroupResponse parses an HTTP response from a DeleteLogGroupWithResponse call
func (DeleteLogGroupResponse) ContentType ¶
func (r DeleteLogGroupResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteLogGroupResponse) Status ¶
func (r DeleteLogGroupResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteLogGroupResponse) StatusCode ¶
func (r DeleteLogGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteLoggerResponse ¶
type DeleteLoggerResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationvndApiJSON400 *ErrorResponse
ApplicationvndApiJSON401 *ErrorResponse
ApplicationvndApiJSON404 *ErrorResponse
ApplicationvndApiJSON429 *ErrorResponse
}
func ParseDeleteLoggerResponse ¶
func ParseDeleteLoggerResponse(rsp *http.Response) (*DeleteLoggerResponse, error)
ParseDeleteLoggerResponse parses an HTTP response from a DeleteLoggerWithResponse call
func (DeleteLoggerResponse) ContentType ¶
func (r DeleteLoggerResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteLoggerResponse) Status ¶
func (r DeleteLoggerResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteLoggerResponse) StatusCode ¶
func (r DeleteLoggerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Error ¶
type Error struct {
Detail *string `json:"detail,omitempty"`
Source *map[string]interface{} `json:"source,omitempty"`
Status string `json:"status"`
Title string `json:"title"`
}
Error Single JSON:API error object.
type ErrorResponse ¶
type ErrorResponse struct {
Errors []Error `json:"errors"`
}
ErrorResponse JSON:API error response envelope.
type GetLogGroupResponse ¶
type GetLogGroupResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationvndApiJSON200 *LogGroupResponse
ApplicationvndApiJSON400 *ErrorResponse
ApplicationvndApiJSON401 *ErrorResponse
ApplicationvndApiJSON404 *ErrorResponse
ApplicationvndApiJSON429 *ErrorResponse
}
func ParseGetLogGroupResponse ¶
func ParseGetLogGroupResponse(rsp *http.Response) (*GetLogGroupResponse, error)
ParseGetLogGroupResponse parses an HTTP response from a GetLogGroupWithResponse call
func (GetLogGroupResponse) ContentType ¶
func (r GetLogGroupResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLogGroupResponse) Status ¶
func (r GetLogGroupResponse) Status() string
Status returns HTTPResponse.Status
func (GetLogGroupResponse) StatusCode ¶
func (r GetLogGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLoggerResponse ¶
type GetLoggerResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationvndApiJSON200 *LoggerResponse
ApplicationvndApiJSON400 *ErrorResponse
ApplicationvndApiJSON401 *ErrorResponse
ApplicationvndApiJSON404 *ErrorResponse
ApplicationvndApiJSON429 *ErrorResponse
}
func ParseGetLoggerResponse ¶
func ParseGetLoggerResponse(rsp *http.Response) (*GetLoggerResponse, error)
ParseGetLoggerResponse parses an HTTP response from a GetLoggerWithResponse call
func (GetLoggerResponse) ContentType ¶
func (r GetLoggerResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLoggerResponse) Status ¶
func (r GetLoggerResponse) Status() string
Status returns HTTPResponse.Status
func (GetLoggerResponse) StatusCode ¶
func (r GetLoggerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ListAllLoggerSourcesParams ¶
type ListAllLoggerSourcesParams struct {
FilterEnvironment *string `form:"filter[environment],omitempty" json:"filter[environment],omitempty"`
FilterService *string `form:"filter[service],omitempty" json:"filter[service],omitempty"`
}
ListAllLoggerSourcesParams defines parameters for ListAllLoggerSources.
type ListAllLoggerSourcesResponse ¶
type ListAllLoggerSourcesResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationvndApiJSON200 *LoggerSourceListResponse
ApplicationvndApiJSON400 *ErrorResponse
ApplicationvndApiJSON401 *ErrorResponse
ApplicationvndApiJSON404 *ErrorResponse
ApplicationvndApiJSON429 *ErrorResponse
}
func ParseListAllLoggerSourcesResponse ¶
func ParseListAllLoggerSourcesResponse(rsp *http.Response) (*ListAllLoggerSourcesResponse, error)
ParseListAllLoggerSourcesResponse parses an HTTP response from a ListAllLoggerSourcesWithResponse call
func (ListAllLoggerSourcesResponse) ContentType ¶
func (r ListAllLoggerSourcesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAllLoggerSourcesResponse) Status ¶
func (r ListAllLoggerSourcesResponse) Status() string
Status returns HTTPResponse.Status
func (ListAllLoggerSourcesResponse) StatusCode ¶
func (r ListAllLoggerSourcesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListLogGroupsResponse ¶
type ListLogGroupsResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationvndApiJSON200 *LogGroupListResponse
ApplicationvndApiJSON400 *ErrorResponse
ApplicationvndApiJSON401 *ErrorResponse
ApplicationvndApiJSON404 *ErrorResponse
ApplicationvndApiJSON429 *ErrorResponse
}
func ParseListLogGroupsResponse ¶
func ParseListLogGroupsResponse(rsp *http.Response) (*ListLogGroupsResponse, error)
ParseListLogGroupsResponse parses an HTTP response from a ListLogGroupsWithResponse call
func (ListLogGroupsResponse) ContentType ¶
func (r ListLogGroupsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListLogGroupsResponse) Status ¶
func (r ListLogGroupsResponse) Status() string
Status returns HTTPResponse.Status
func (ListLogGroupsResponse) StatusCode ¶
func (r ListLogGroupsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListLoggerSourcesResponse ¶
type ListLoggerSourcesResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationvndApiJSON200 *LoggerSourceListResponse
ApplicationvndApiJSON400 *ErrorResponse
ApplicationvndApiJSON401 *ErrorResponse
ApplicationvndApiJSON404 *ErrorResponse
ApplicationvndApiJSON429 *ErrorResponse
}
func ParseListLoggerSourcesResponse ¶
func ParseListLoggerSourcesResponse(rsp *http.Response) (*ListLoggerSourcesResponse, error)
ParseListLoggerSourcesResponse parses an HTTP response from a ListLoggerSourcesWithResponse call
func (ListLoggerSourcesResponse) ContentType ¶
func (r ListLoggerSourcesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListLoggerSourcesResponse) Status ¶
func (r ListLoggerSourcesResponse) Status() string
Status returns HTTPResponse.Status
func (ListLoggerSourcesResponse) StatusCode ¶
func (r ListLoggerSourcesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListLoggersParams ¶
type ListLoggersParams struct {
FilterManaged *bool `form:"filter[managed],omitempty" json:"filter[managed],omitempty"`
FilterService *string `form:"filter[service],omitempty" json:"filter[service],omitempty"`
FilterLastSeen *string `form:"filter[last_seen],omitempty" json:"filter[last_seen],omitempty"`
}
ListLoggersParams defines parameters for ListLoggers.
type ListLoggersResponse ¶
type ListLoggersResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationvndApiJSON200 *LoggerListResponse
ApplicationvndApiJSON400 *ErrorResponse
ApplicationvndApiJSON401 *ErrorResponse
ApplicationvndApiJSON404 *ErrorResponse
ApplicationvndApiJSON429 *ErrorResponse
}
func ParseListLoggersResponse ¶
func ParseListLoggersResponse(rsp *http.Response) (*ListLoggersResponse, error)
ParseListLoggersResponse parses an HTTP response from a ListLoggersWithResponse call
func (ListLoggersResponse) ContentType ¶
func (r ListLoggersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListLoggersResponse) Status ¶
func (r ListLoggersResponse) Status() string
Status returns HTTPResponse.Status
func (ListLoggersResponse) StatusCode ¶
func (r ListLoggersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListLoggingUsageParams ¶
type ListLoggingUsageParams struct {
FilterPeriod *string `form:"filter[period],omitempty" json:"filter[period],omitempty"`
}
ListLoggingUsageParams defines parameters for ListLoggingUsage.
type ListLoggingUsageResponse ¶
type ListLoggingUsageResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationvndApiJSON200 *UsageListResponse
ApplicationvndApiJSON400 *ErrorResponse
ApplicationvndApiJSON401 *ErrorResponse
ApplicationvndApiJSON404 *ErrorResponse
ApplicationvndApiJSON429 *ErrorResponse
}
func ParseListLoggingUsageResponse ¶
func ParseListLoggingUsageResponse(rsp *http.Response) (*ListLoggingUsageResponse, error)
ParseListLoggingUsageResponse parses an HTTP response from a ListLoggingUsageWithResponse call
func (ListLoggingUsageResponse) ContentType ¶
func (r ListLoggingUsageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListLoggingUsageResponse) Status ¶
func (r ListLoggingUsageResponse) Status() string
Status returns HTTPResponse.Status
func (ListLoggingUsageResponse) StatusCode ¶
func (r ListLoggingUsageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListServicesResponse ¶
type ListServicesResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationvndApiJSON200 *ServiceListResponse
ApplicationvndApiJSON400 *ErrorResponse
ApplicationvndApiJSON401 *ErrorResponse
ApplicationvndApiJSON404 *ErrorResponse
ApplicationvndApiJSON429 *ErrorResponse
}
func ParseListServicesResponse ¶
func ParseListServicesResponse(rsp *http.Response) (*ListServicesResponse, error)
ParseListServicesResponse parses an HTTP response from a ListServicesWithResponse call
func (ListServicesResponse) ContentType ¶
func (r ListServicesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListServicesResponse) Status ¶
func (r ListServicesResponse) Status() string
Status returns HTTPResponse.Status
func (ListServicesResponse) StatusCode ¶
func (r ListServicesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LogGroup ¶
type LogGroup struct {
// CreatedAt When the group was created.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Environments Per-environment level overrides keyed by environment name. Each value is an object with an optional `level` field, e.g. `{"production": {"level": "ERROR"}}`. Member loggers inherit the per-environment level unless they set their own override.
Environments *map[string]interface{} `json:"environments,omitempty"`
// Level Default level applied to every logger in the group. `null` leaves member loggers to inherit from elsewhere.
Level *LogGroupLevel `json:"level,omitempty"`
// Name Human-readable label for the group.
Name string `json:"name"`
// ParentId Reserved for nested groups. Must be `null` in this version; nested groups are not yet supported.
ParentId *string `json:"parent_id,omitempty"`
// UpdatedAt When the group was last modified.
UpdatedAt *time.Time `json:"updated_at,omitempty"`
}
LogGroup A named collection of loggers that share a level configuration.
Assigning a logger to a group ties the logger's effective level to the group's level (and per-environment overrides). Loggers can move between groups or be detached from a group entirely.
type LogGroupLevel ¶ added in v3.0.32
type LogGroupLevel string
LogGroupLevel Default level applied to every logger in the group. `null` leaves member loggers to inherit from elsewhere.
const ( LogGroupLevelDEBUG LogGroupLevel = "DEBUG" LogGroupLevelERROR LogGroupLevel = "ERROR" LogGroupLevelFATAL LogGroupLevel = "FATAL" LogGroupLevelINFO LogGroupLevel = "INFO" LogGroupLevelSILENT LogGroupLevel = "SILENT" LogGroupLevelTRACE LogGroupLevel = "TRACE" LogGroupLevelWARN LogGroupLevel = "WARN" )
Defines values for LogGroupLevel.
func (LogGroupLevel) Valid ¶ added in v3.0.32
func (e LogGroupLevel) Valid() bool
Valid indicates whether the value is a known member of the LogGroupLevel enum.
type LogGroupListResponse ¶
type LogGroupListResponse struct {
Data []LogGroupResource `json:"data"`
}
LogGroupListResponse JSON:API collection response for log groups.
type LogGroupRequest ¶ added in v3.0.32
type LogGroupRequest struct {
// Data JSON:API resource envelope for a log group.
//
// `id` is the group's key (e.g. `database-loggers`). On a create
// request the id may be supplied; if omitted, the server generates
// one from `name`.
Data LogGroupResource `json:"data"`
}
LogGroupRequest JSON:API request envelope for creating or updating a log group.
type LogGroupResource ¶
type LogGroupResource struct {
// Attributes A named collection of loggers that share a level configuration.
//
// Assigning a logger to a group ties the logger's effective level to
// the group's level (and per-environment overrides). Loggers can move
// between groups or be detached from a group entirely.
Attributes LogGroup `json:"attributes"`
Id *string `json:"id,omitempty"`
Type LogGroupResourceType `json:"type"`
}
LogGroupResource JSON:API resource envelope for a log group.
`id` is the group's key (e.g. `database-loggers`). On a create request the id may be supplied; if omitted, the server generates one from `name`.
type LogGroupResourceType ¶
type LogGroupResourceType string
LogGroupResourceType defines model for LogGroupResource.Type.
const (
LogGroupResourceTypeLogGroup LogGroupResourceType = "log_group"
)
Defines values for LogGroupResourceType.
func (LogGroupResourceType) Valid ¶
func (e LogGroupResourceType) Valid() bool
Valid indicates whether the value is a known member of the LogGroupResourceType enum.
type LogGroupResponse ¶
type LogGroupResponse struct {
// Data JSON:API resource envelope for a log group.
//
// `id` is the group's key (e.g. `database-loggers`). On a create
// request the id may be supplied; if omitted, the server generates
// one from `name`.
Data LogGroupResource `json:"data"`
}
LogGroupResponse JSON:API single-resource response envelope for a log group.
type Logger ¶
type Logger struct {
// CreatedAt When the logger was first created or discovered.
CreatedAt *time.Time `json:"created_at,omitempty"`
// EffectiveLevels Per-environment summary of what runtimes are reporting for this logger. Keyed by environment name; each entry is one of `{"status": "none"}`, `{"status": "agrees", "level": "<LEVEL>"}`, or `{"status": "varies"}`. `agrees` means every observed source in that environment reports the same resolved level; `varies` means at least two sources disagree.
EffectiveLevels *map[string]interface{} `json:"effective_levels,omitempty"`
// Environments Per-environment level overrides keyed by environment name. Each value is an object with an optional `level` field, e.g. `{"production": {"level": "WARN"}}`. An environment may be present with no `level` to record that the logger applies there without changing the resolved level.
Environments *map[string]interface{} `json:"environments,omitempty"`
// Group Key of the log group this logger belongs to, or `null` if the logger is not grouped. Assigning a logger to a group promotes it to managed; assigning a group cascades to unmanaged descendants by clearing their group reference.
Group *string `json:"group,omitempty"`
// Level Account-wide log level applied to this logger. `null` means no override at the logger level — the level is inherited from the logger's group or the framework default.
Level *LoggerLevel `json:"level,omitempty"`
// Managed When `true`, the logger is part of the account's managed configuration and counts toward the managed-loggers usage counter. Setting `level`, `group`, or `environments` on an unmanaged logger promotes it to managed automatically.
Managed *bool `json:"managed,omitempty"`
// Name Human-readable label for the logger.
Name string `json:"name"`
// Sources Service / environment observations reported by SDKs for this logger. Each entry carries the service name, environment, the level the SDK saw, the resolved level after framework inheritance, and timestamps for the first and most recent sighting.
Sources *[]map[string]interface{} `json:"sources,omitempty"`
// UpdatedAt When the logger was last modified.
UpdatedAt *time.Time `json:"updated_at,omitempty"`
}
Logger A logger configured for the account.
Loggers are organized by dot-separated key (for example, `sqlalchemy.engine`), matching the hierarchical naming convention used by most logging frameworks. A managed logger applies the configured level to every runtime where the logger appears; unmanaged loggers are tracked only as observations from SDKs.
type LoggerBulkItem ¶
type LoggerBulkItem struct {
// Environment Environment where the logger was observed.
Environment *string `json:"environment,omitempty"`
// Id Dot-separated logger key as the SDK saw it.
Id string `json:"id"`
// Level Level explicitly set on the logger by application code. `null` when the level is inherited.
Level *string `json:"level,omitempty"`
// ResolvedLevel Effective level after framework inheritance. SDKs should always report this; the server falls back to `level` when `resolved_level` is missing.
ResolvedLevel *string `json:"resolved_level,omitempty"`
// Service Service name that observed the logger.
Service *string `json:"service,omitempty"`
}
LoggerBulkItem One logger discovered by an SDK during a bulk registration call.
type LoggerBulkRequest ¶
type LoggerBulkRequest struct {
// Loggers Loggers to register or refresh observations for.
Loggers []LoggerBulkItem `json:"loggers"`
}
LoggerBulkRequest Payload for bulk registration of loggers discovered by an SDK.
type LoggerBulkResponse ¶
type LoggerBulkResponse struct {
// Registered Number of loggers that were created or had a source observation refreshed.
Registered int `json:"registered"`
}
LoggerBulkResponse Result of a bulk registration call.
type LoggerLevel ¶ added in v3.0.32
type LoggerLevel string
LoggerLevel Account-wide log level applied to this logger. `null` means no override at the logger level — the level is inherited from the logger's group or the framework default.
const ( LoggerLevelDEBUG LoggerLevel = "DEBUG" LoggerLevelERROR LoggerLevel = "ERROR" LoggerLevelFATAL LoggerLevel = "FATAL" LoggerLevelINFO LoggerLevel = "INFO" LoggerLevelSILENT LoggerLevel = "SILENT" LoggerLevelTRACE LoggerLevel = "TRACE" LoggerLevelWARN LoggerLevel = "WARN" )
Defines values for LoggerLevel.
func (LoggerLevel) Valid ¶ added in v3.0.32
func (e LoggerLevel) Valid() bool
Valid indicates whether the value is a known member of the LoggerLevel enum.
type LoggerListResponse ¶
type LoggerListResponse struct {
Data []LoggerResource `json:"data"`
}
LoggerListResponse JSON:API collection response for loggers.
type LoggerRequest ¶ added in v3.0.32
type LoggerRequest struct {
// Data JSON:API resource envelope for a logger.
//
// `id` is the logger's dot-separated key (e.g. `sqlalchemy.engine`).
// On a `PUT /api/v1/loggers/{id}` create, the id is taken from the URL
// path; on update, an `id` in the body renames the logger.
Data LoggerResource `json:"data"`
}
LoggerRequest JSON:API request envelope for creating or updating a logger.
type LoggerResource ¶
type LoggerResource struct {
// Attributes A logger configured for the account.
//
// Loggers are organized by dot-separated key (for example, `sqlalchemy.engine`),
// matching the hierarchical naming convention used by most logging
// frameworks. A managed logger applies the configured level to every
// runtime where the logger appears; unmanaged loggers are tracked only
// as observations from SDKs.
Attributes Logger `json:"attributes"`
Id *string `json:"id,omitempty"`
Type LoggerResourceType `json:"type"`
}
LoggerResource JSON:API resource envelope for a logger.
`id` is the logger's dot-separated key (e.g. `sqlalchemy.engine`). On a `PUT /api/v1/loggers/{id}` create, the id is taken from the URL path; on update, an `id` in the body renames the logger.
type LoggerResourceType ¶
type LoggerResourceType string
LoggerResourceType defines model for LoggerResource.Type.
const (
LoggerResourceTypeLogger LoggerResourceType = "logger"
)
Defines values for LoggerResourceType.
func (LoggerResourceType) Valid ¶
func (e LoggerResourceType) Valid() bool
Valid indicates whether the value is a known member of the LoggerResourceType enum.
type LoggerResponse ¶
type LoggerResponse struct {
// Data JSON:API resource envelope for a logger.
//
// `id` is the logger's dot-separated key (e.g. `sqlalchemy.engine`).
// On a `PUT /api/v1/loggers/{id}` create, the id is taken from the URL
// path; on update, an `id` in the body renames the logger.
Data LoggerResource `json:"data"`
}
LoggerResponse JSON:API single-resource response envelope for a logger.
type LoggerSource ¶
type LoggerSource struct {
// CreatedAt When the source row was created.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Environment Environment the service was running in when it reported the logger.
Environment *string `json:"environment,omitempty"`
// FirstObserved When this service / environment combination first reported the logger.
FirstObserved *time.Time `json:"first_observed,omitempty"`
// LastSeen Most recent report received for this service / environment combination.
LastSeen *time.Time `json:"last_seen,omitempty"`
// Level Level explicitly set on the logger in the source runtime. `null` when the runtime inherits its level.
Level *string `json:"level,omitempty"`
// ResolvedLevel Effective level the runtime resolved for the logger.
ResolvedLevel *string `json:"resolved_level,omitempty"`
// Service Service that reported the logger.
Service *string `json:"service,omitempty"`
// UpdatedAt When the source row was last refreshed.
UpdatedAt *time.Time `json:"updated_at,omitempty"`
}
LoggerSource A single service / environment observation of a logger.
A source row exists for every (service, environment) pair that has reported the logger via the bulk registration endpoint. The row's levels reflect what the SDK saw on the most recent report.
type LoggerSourceListResponse ¶
type LoggerSourceListResponse struct {
Data []LoggerSourceResource `json:"data"`
}
LoggerSourceListResponse JSON:API collection response for logger sources.
type LoggerSourceResource ¶
type LoggerSourceResource struct {
// Attributes A single service / environment observation of a logger.
//
// A source row exists for every (service, environment) pair that has
// reported the logger via the bulk registration endpoint. The row's
// levels reflect what the SDK saw on the most recent report.
Attributes LoggerSource `json:"attributes"`
Id *string `json:"id,omitempty"`
Type LoggerSourceResourceType `json:"type"`
}
LoggerSourceResource JSON:API resource envelope for a logger source observation.
type LoggerSourceResourceType ¶
type LoggerSourceResourceType string
LoggerSourceResourceType defines model for LoggerSourceResource.Type.
const (
LoggerSourceResourceTypeLoggerSource LoggerSourceResourceType = "logger_source"
)
Defines values for LoggerSourceResourceType.
func (LoggerSourceResourceType) Valid ¶
func (e LoggerSourceResourceType) Valid() bool
Valid indicates whether the value is a known member of the LoggerSourceResourceType enum.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ServiceAttributes ¶
type ServiceAttributes = map[string]interface{}
ServiceAttributes A discovered service has no attributes beyond its name (the `id`).
type ServiceListResponse ¶
type ServiceListResponse struct {
Data []ServiceResource `json:"data"`
}
ServiceListResponse JSON:API collection response for discovered services.
type ServiceResource ¶
type ServiceResource struct {
// Attributes A discovered service has no attributes beyond its name (the `id`).
Attributes *ServiceAttributes `json:"attributes,omitempty"`
Id string `json:"id"`
Type ServiceResourceType `json:"type"`
}
ServiceResource JSON:API resource envelope for a discovered service.
`id` is the service name as reported by an SDK during bulk registration. The resource carries no additional attributes — it represents the existence of the service in the account's observations, nothing more.
type ServiceResourceType ¶
type ServiceResourceType string
ServiceResourceType defines model for ServiceResource.Type.
const (
Service ServiceResourceType = "service"
)
Defines values for ServiceResourceType.
func (ServiceResourceType) Valid ¶
func (e ServiceResourceType) Valid() bool
Valid indicates whether the value is a known member of the ServiceResourceType enum.
type UpdateLogGroupApplicationVndAPIPlusJSONRequestBody ¶
type UpdateLogGroupApplicationVndAPIPlusJSONRequestBody = LogGroupRequest
UpdateLogGroupApplicationVndAPIPlusJSONRequestBody defines body for UpdateLogGroup for application/vnd.api+json ContentType.
type UpdateLogGroupResponse ¶
type UpdateLogGroupResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationvndApiJSON200 *LogGroupResponse
ApplicationvndApiJSON400 *ErrorResponse
ApplicationvndApiJSON401 *ErrorResponse
ApplicationvndApiJSON404 *ErrorResponse
ApplicationvndApiJSON429 *ErrorResponse
}
func ParseUpdateLogGroupResponse ¶
func ParseUpdateLogGroupResponse(rsp *http.Response) (*UpdateLogGroupResponse, error)
ParseUpdateLogGroupResponse parses an HTTP response from a UpdateLogGroupWithResponse call
func (UpdateLogGroupResponse) ContentType ¶
func (r UpdateLogGroupResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateLogGroupResponse) Status ¶
func (r UpdateLogGroupResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateLogGroupResponse) StatusCode ¶
func (r UpdateLogGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateLoggerApplicationVndAPIPlusJSONRequestBody ¶
type UpdateLoggerApplicationVndAPIPlusJSONRequestBody = LoggerRequest
UpdateLoggerApplicationVndAPIPlusJSONRequestBody defines body for UpdateLogger for application/vnd.api+json ContentType.
type UpdateLoggerResponse ¶
type UpdateLoggerResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationvndApiJSON200 *LoggerResponse
ApplicationvndApiJSON400 *ErrorResponse
ApplicationvndApiJSON401 *ErrorResponse
ApplicationvndApiJSON404 *ErrorResponse
ApplicationvndApiJSON429 *ErrorResponse
}
func ParseUpdateLoggerResponse ¶
func ParseUpdateLoggerResponse(rsp *http.Response) (*UpdateLoggerResponse, error)
ParseUpdateLoggerResponse parses an HTTP response from a UpdateLoggerWithResponse call
func (UpdateLoggerResponse) ContentType ¶
func (r UpdateLoggerResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateLoggerResponse) Status ¶
func (r UpdateLoggerResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateLoggerResponse) StatusCode ¶
func (r UpdateLoggerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UsageAttributes ¶
type UsageAttributes struct {
// LimitKey Identifier of the metered limit, e.g. `logging.managed_loggers` or `logging.groups`.
LimitKey string `json:"limit_key"`
// Period Period the counter covers. `current` is the only supported value.
Period string `json:"period"`
// Value Count for the period.
Value int `json:"value"`
}
UsageAttributes Usage counter for a single metered limit.
type UsageListResponse ¶
type UsageListResponse struct {
Data []UsageResource `json:"data"`
}
UsageListResponse JSON:API collection response for usage counters.
type UsageResource ¶
type UsageResource struct {
// Attributes Usage counter for a single metered limit.
Attributes UsageAttributes `json:"attributes"`
Id string `json:"id"`
Type UsageResourceType `json:"type"`
}
UsageResource JSON:API resource envelope for a single usage counter.
type UsageResourceType ¶
type UsageResourceType string
UsageResourceType defines model for UsageResource.Type.
const (
Usage UsageResourceType = "usage"
)
Defines values for UsageResourceType.
func (UsageResourceType) Valid ¶
func (e UsageResourceType) Valid() bool
Valid indicates whether the value is a known member of the UsageResourceType enum.