logging

package
v3.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2026 License: MIT Imports: 10 Imported by: 0

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

View Source
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

func NewDeleteLogGroupRequest(server string, id string) (*http.Request, error)

NewDeleteLogGroupRequest generates requests for DeleteLogGroup

func NewDeleteLoggerRequest

func NewDeleteLoggerRequest(server string, id string) (*http.Request, error)

NewDeleteLoggerRequest generates requests for DeleteLogger

func NewGetLogGroupRequest

func NewGetLogGroupRequest(server string, id string) (*http.Request, error)

NewGetLogGroupRequest generates requests for GetLogGroup

func NewGetLoggerRequest

func NewGetLoggerRequest(server string, id string) (*http.Request, error)

NewGetLoggerRequest generates requests for GetLogger

func NewListAllLoggerSourcesRequest

func NewListAllLoggerSourcesRequest(server string, params *ListAllLoggerSourcesParams) (*http.Request, error)

NewListAllLoggerSourcesRequest generates requests for ListAllLoggerSources

func NewListLogGroupsRequest

func NewListLogGroupsRequest(server string) (*http.Request, error)

NewListLogGroupsRequest generates requests for ListLogGroups

func NewListLoggerSourcesRequest

func NewListLoggerSourcesRequest(server string, id string) (*http.Request, error)

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

func NewListServicesRequest(server string) (*http.Request, error)

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

func NewUpdateLoggerRequestWithBody

func NewUpdateLoggerRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateLoggerRequestWithBody generates requests for UpdateLogger with any type of 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

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 (c *Client) BulkRegisterLoggersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateLogGroupWithApplicationVndAPIPlusJSONBody

func (c *Client) CreateLogGroupWithApplicationVndAPIPlusJSONBody(ctx context.Context, body CreateLogGroupApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateLogGroupWithBody

func (c *Client) CreateLogGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteLogGroup

func (c *Client) DeleteLogGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteLogger

func (c *Client) DeleteLogger(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLogGroup

func (c *Client) GetLogGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLogger

func (c *Client) GetLogger(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListAllLoggerSources

func (c *Client) ListAllLoggerSources(ctx context.Context, params *ListAllLoggerSourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListLogGroups

func (c *Client) ListLogGroups(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListLoggerSources

func (c *Client) ListLoggerSources(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) ListServices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateLogGroupWithApplicationVndAPIPlusJSONBody

func (c *Client) UpdateLogGroupWithApplicationVndAPIPlusJSONBody(ctx context.Context, id string, body UpdateLogGroupApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateLogGroupWithBody

func (c *Client) UpdateLogGroupWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateLoggerWithApplicationVndAPIPlusJSONBody

func (c *Client) UpdateLoggerWithApplicationVndAPIPlusJSONBody(ctx context.Context, id string, body UpdateLoggerApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateLoggerWithBody

func (c *Client) UpdateLoggerWithBody(ctx context.Context, id string, contentType string, body io.Reader, 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

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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 = LogGroupResponse

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

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

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

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    *time.Time              `json:"created_at,omitempty"`
	Environments *map[string]interface{} `json:"environments,omitempty"`
	Level        *string                 `json:"level,omitempty"`
	Name         string                  `json:"name"`
	ParentId     *string                 `json:"parent_id,omitempty"`
	UpdatedAt    *time.Time              `json:"updated_at,omitempty"`
}

LogGroup defines model for LogGroup.

type LogGroupListResponse

type LogGroupListResponse struct {
	Data []LogGroupResource `json:"data"`
}

LogGroupListResponse defines model for LogGroupListResponse.

type LogGroupResource

type LogGroupResource struct {
	Attributes LogGroup             `json:"attributes"`
	Id         *string              `json:"id,omitempty"`
	Type       LogGroupResourceType `json:"type"`
}

LogGroupResource defines model for LogGroupResource.

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 LogGroupResource `json:"data"`
}

LogGroupResponse defines model for LogGroupResponse.

type Logger

type Logger struct {
	CreatedAt       *time.Time                `json:"created_at,omitempty"`
	EffectiveLevels *map[string]interface{}   `json:"effective_levels,omitempty"`
	Environments    *map[string]interface{}   `json:"environments,omitempty"`
	Group           *string                   `json:"group,omitempty"`
	Level           *string                   `json:"level,omitempty"`
	Managed         *bool                     `json:"managed,omitempty"`
	Name            string                    `json:"name"`
	Sources         *[]map[string]interface{} `json:"sources,omitempty"`
	UpdatedAt       *time.Time                `json:"updated_at,omitempty"`
}

Logger defines model for Logger.

type LoggerBulkItem

type LoggerBulkItem struct {
	// Environment Environment where this logger was observed
	Environment *string `json:"environment,omitempty"`

	// Id Normalized logger name
	Id string `json:"id"`

	// Level The explicitly-set level on this logger. Null if inherited.
	Level *string `json:"level,omitempty"`

	// ResolvedLevel The effective level after framework inheritance. Never null in compliant SDKs.
	ResolvedLevel *string `json:"resolved_level,omitempty"`

	// Service Service name that discovered this logger
	Service *string `json:"service,omitempty"`
}

LoggerBulkItem defines model for LoggerBulkItem.

type LoggerBulkRequest

type LoggerBulkRequest struct {
	Loggers []LoggerBulkItem `json:"loggers"`
}

LoggerBulkRequest defines model for LoggerBulkRequest.

type LoggerBulkResponse

type LoggerBulkResponse struct {
	Registered int `json:"registered"`
}

LoggerBulkResponse defines model for LoggerBulkResponse.

type LoggerListResponse

type LoggerListResponse struct {
	Data []LoggerResource `json:"data"`
}

LoggerListResponse defines model for LoggerListResponse.

type LoggerResource

type LoggerResource struct {
	Attributes Logger             `json:"attributes"`
	Id         *string            `json:"id,omitempty"`
	Type       LoggerResourceType `json:"type"`
}

LoggerResource defines model for LoggerResource.

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 LoggerResource `json:"data"`
}

LoggerResponse defines model for LoggerResponse.

type LoggerSource

type LoggerSource struct {
	CreatedAt     *time.Time `json:"created_at,omitempty"`
	Environment   *string    `json:"environment,omitempty"`
	FirstObserved *time.Time `json:"first_observed,omitempty"`
	LastSeen      *time.Time `json:"last_seen,omitempty"`
	Level         *string    `json:"level,omitempty"`
	ResolvedLevel *string    `json:"resolved_level,omitempty"`
	Service       *string    `json:"service,omitempty"`
	UpdatedAt     *time.Time `json:"updated_at,omitempty"`
}

LoggerSource defines model for LoggerSource.

type LoggerSourceListResponse

type LoggerSourceListResponse struct {
	Data []LoggerSourceResource `json:"data"`
}

LoggerSourceListResponse defines model for LoggerSourceListResponse.

type LoggerSourceResource

type LoggerSourceResource struct {
	Attributes LoggerSource             `json:"attributes"`
	Id         *string                  `json:"id,omitempty"`
	Type       LoggerSourceResourceType `json:"type"`
}

LoggerSourceResource defines model for LoggerSourceResource.

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

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ServiceAttributes

type ServiceAttributes = map[string]interface{}

ServiceAttributes defines model for ServiceAttributes.

type ServiceListResponse

type ServiceListResponse struct {
	Data []ServiceResource `json:"data"`
}

ServiceListResponse defines model for ServiceListResponse.

type ServiceResource

type ServiceResource struct {
	Attributes *ServiceAttributes  `json:"attributes,omitempty"`
	Id         string              `json:"id"`
	Type       ServiceResourceType `json:"type"`
}

ServiceResource defines model for ServiceResource.

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 = LogGroupResponse

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 = LoggerResponse

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 string `json:"limit_key"`
	Period   string `json:"period"`
	Value    int    `json:"value"`
}

UsageAttributes defines model for UsageAttributes.

type UsageListResponse

type UsageListResponse struct {
	Data []UsageResource `json:"data"`
}

UsageListResponse defines model for UsageListResponse.

type UsageResource

type UsageResource struct {
	Attributes UsageAttributes   `json:"attributes"`
	Id         string            `json:"id"`
	Type       UsageResourceType `json:"type"`
}

UsageResource defines model for UsageResource.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL