audit

package
v3.0.76 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package audit 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 NewCreateForwarderRequestWithApplicationVndAPIPlusJSONBody added in v3.0.14

func NewCreateForwarderRequestWithApplicationVndAPIPlusJSONBody(server string, body CreateForwarderApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewCreateForwarderRequestWithApplicationVndAPIPlusJSONBody calls the generic CreateForwarder builder with application/vnd.api+json body

func NewCreateForwarderRequestWithBody added in v3.0.14

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

NewCreateForwarderRequestWithBody generates requests for CreateForwarder with any type of body

func NewDeleteForwarderRequest added in v3.0.14

func NewDeleteForwarderRequest(server string, forwarderId openapi_types.UUID) (*http.Request, error)

NewDeleteForwarderRequest generates requests for DeleteForwarder

func NewExecuteTestForwarderRequest added in v3.0.14

func NewExecuteTestForwarderRequest(server string, body ExecuteTestForwarderJSONRequestBody) (*http.Request, error)

NewExecuteTestForwarderRequest calls the generic ExecuteTestForwarder builder with application/json body

func NewExecuteTestForwarderRequestWithBody added in v3.0.14

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

NewExecuteTestForwarderRequestWithBody generates requests for ExecuteTestForwarder with any type of body

func NewGetEventRequest

func NewGetEventRequest(server string, eventId openapi_types.UUID) (*http.Request, error)

NewGetEventRequest generates requests for GetEvent

func NewGetForwarderRequest added in v3.0.14

func NewGetForwarderRequest(server string, forwarderId openapi_types.UUID) (*http.Request, error)

NewGetForwarderRequest generates requests for GetForwarder

func NewGetForwarderTypeApiV1ForwarderTypesIdGetRequest added in v3.0.64

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

NewGetForwarderTypeApiV1ForwarderTypesIdGetRequest generates requests for GetForwarderTypeApiV1ForwarderTypesIdGet

func NewListEventTypesRequest added in v3.0.69

func NewListEventTypesRequest(server string, params *ListEventTypesParams) (*http.Request, error)

NewListEventTypesRequest generates requests for ListEventTypes

func NewListEventsRequest

func NewListEventsRequest(server string, params *ListEventsParams) (*http.Request, error)

NewListEventsRequest generates requests for ListEvents

func NewListForwarderDeliveriesRequest added in v3.0.14

func NewListForwarderDeliveriesRequest(server string, forwarderId openapi_types.UUID, params *ListForwarderDeliveriesParams) (*http.Request, error)

NewListForwarderDeliveriesRequest generates requests for ListForwarderDeliveries

func NewListForwarderTypesApiV1ForwarderTypesGetRequest added in v3.0.64

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

NewListForwarderTypesApiV1ForwarderTypesGetRequest generates requests for ListForwarderTypesApiV1ForwarderTypesGet

func NewListForwardersRequest added in v3.0.14

func NewListForwardersRequest(server string, params *ListForwardersParams) (*http.Request, error)

NewListForwardersRequest generates requests for ListForwarders

func NewListResourceTypesRequest added in v3.0.24

func NewListResourceTypesRequest(server string, params *ListResourceTypesParams) (*http.Request, error)

NewListResourceTypesRequest generates requests for ListResourceTypes

func NewListUsageRequest

func NewListUsageRequest(server string, params *ListUsageParams) (*http.Request, error)

NewListUsageRequest generates requests for ListUsage

func NewRecordEventRequestWithApplicationVndAPIPlusJSONBody added in v3.0.12

func NewRecordEventRequestWithApplicationVndAPIPlusJSONBody(server string, params *RecordEventParams, body RecordEventApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewRecordEventRequestWithApplicationVndAPIPlusJSONBody calls the generic RecordEvent builder with application/vnd.api+json body

func NewRecordEventRequestWithBody added in v3.0.12

func NewRecordEventRequestWithBody(server string, params *RecordEventParams, contentType string, body io.Reader) (*http.Request, error)

NewRecordEventRequestWithBody generates requests for RecordEvent with any type of body

func NewRetryFailedForwarderDeliveriesRequest added in v3.0.14

func NewRetryFailedForwarderDeliveriesRequest(server string, forwarderId openapi_types.UUID) (*http.Request, error)

NewRetryFailedForwarderDeliveriesRequest generates requests for RetryFailedForwarderDeliveries

func NewRetryForwarderDeliveryRequest added in v3.0.14

func NewRetryForwarderDeliveryRequest(server string, forwarderId openapi_types.UUID, deliveryId openapi_types.UUID) (*http.Request, error)

NewRetryForwarderDeliveryRequest generates requests for RetryForwarderDelivery

func NewSearchEventsRequest added in v3.0.60

func NewSearchEventsRequest(server string, body SearchEventsJSONRequestBody) (*http.Request, error)

NewSearchEventsRequest calls the generic SearchEvents builder with application/json body

func NewSearchEventsRequestWithBody added in v3.0.60

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

NewSearchEventsRequestWithBody generates requests for SearchEvents with any type of body

func NewUpdateForwarderRequestWithApplicationVndAPIPlusJSONBody added in v3.0.14

func NewUpdateForwarderRequestWithApplicationVndAPIPlusJSONBody(server string, forwarderId openapi_types.UUID, body UpdateForwarderApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewUpdateForwarderRequestWithApplicationVndAPIPlusJSONBody calls the generic UpdateForwarder builder with application/vnd.api+json body

func NewUpdateForwarderRequestWithBody added in v3.0.14

func NewUpdateForwarderRequestWithBody(server string, forwarderId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateForwarderRequestWithBody generates requests for UpdateForwarder with any type of body

Types

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) CreateForwarderWithApplicationVndAPIPlusJSONBody added in v3.0.14

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

func (*Client) CreateForwarderWithBody added in v3.0.14

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

func (*Client) DeleteForwarder added in v3.0.14

func (c *Client) DeleteForwarder(ctx context.Context, forwarderId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ExecuteTestForwarder added in v3.0.14

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

func (*Client) ExecuteTestForwarderWithBody added in v3.0.14

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

func (*Client) GetEvent

func (c *Client) GetEvent(ctx context.Context, eventId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetForwarder added in v3.0.14

func (c *Client) GetForwarder(ctx context.Context, forwarderId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetForwarderTypeApiV1ForwarderTypesIdGet added in v3.0.64

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

func (*Client) ListEventTypes added in v3.0.69

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

func (*Client) ListEvents

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

func (*Client) ListForwarderDeliveries added in v3.0.14

func (c *Client) ListForwarderDeliveries(ctx context.Context, forwarderId openapi_types.UUID, params *ListForwarderDeliveriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListForwarderTypesApiV1ForwarderTypesGet added in v3.0.64

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

func (*Client) ListForwarders added in v3.0.14

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

func (*Client) ListResourceTypes added in v3.0.24

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

func (*Client) ListUsage

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

func (*Client) RecordEventWithApplicationVndAPIPlusJSONBody added in v3.0.12

func (c *Client) RecordEventWithApplicationVndAPIPlusJSONBody(ctx context.Context, params *RecordEventParams, body RecordEventApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RecordEventWithBody added in v3.0.12

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

func (*Client) RetryFailedForwarderDeliveries added in v3.0.14

func (c *Client) RetryFailedForwarderDeliveries(ctx context.Context, forwarderId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RetryForwarderDelivery added in v3.0.14

func (c *Client) RetryForwarderDelivery(ctx context.Context, forwarderId openapi_types.UUID, deliveryId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SearchEvents added in v3.0.60

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

func (*Client) SearchEventsWithBody added in v3.0.60

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

func (*Client) UpdateForwarderWithApplicationVndAPIPlusJSONBody added in v3.0.14

func (c *Client) UpdateForwarderWithApplicationVndAPIPlusJSONBody(ctx context.Context, forwarderId openapi_types.UUID, body UpdateForwarderApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateForwarderWithBody added in v3.0.14

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

type ClientInterface

type ClientInterface interface {
	// ListEventTypes request
	ListEventTypes(ctx context.Context, params *ListEventTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListEvents request
	ListEvents(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RecordEventWithBody request with any body
	RecordEventWithBody(ctx context.Context, params *RecordEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RecordEventWithApplicationVndAPIPlusJSONBody(ctx context.Context, params *RecordEventParams, body RecordEventApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetEvent request
	GetEvent(ctx context.Context, eventId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListForwarderTypesApiV1ForwarderTypesGet request
	ListForwarderTypesApiV1ForwarderTypesGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetForwarderTypeApiV1ForwarderTypesIdGet request
	GetForwarderTypeApiV1ForwarderTypesIdGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListForwarders request
	ListForwarders(ctx context.Context, params *ListForwardersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateForwarderWithBody request with any body
	CreateForwarderWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateForwarderWithApplicationVndAPIPlusJSONBody(ctx context.Context, body CreateForwarderApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteForwarder request
	DeleteForwarder(ctx context.Context, forwarderId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetForwarder request
	GetForwarder(ctx context.Context, forwarderId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateForwarderWithBody request with any body
	UpdateForwarderWithBody(ctx context.Context, forwarderId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateForwarderWithApplicationVndAPIPlusJSONBody(ctx context.Context, forwarderId openapi_types.UUID, body UpdateForwarderApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetryFailedForwarderDeliveries request
	RetryFailedForwarderDeliveries(ctx context.Context, forwarderId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListForwarderDeliveries request
	ListForwarderDeliveries(ctx context.Context, forwarderId openapi_types.UUID, params *ListForwarderDeliveriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetryForwarderDelivery request
	RetryForwarderDelivery(ctx context.Context, forwarderId openapi_types.UUID, deliveryId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ExecuteTestForwarderWithBody request with any body
	ExecuteTestForwarderWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ExecuteTestForwarder(ctx context.Context, body ExecuteTestForwarderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListResourceTypes request
	ListResourceTypes(ctx context.Context, params *ListResourceTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SearchEventsWithBody request with any body
	SearchEventsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SearchEvents(ctx context.Context, body SearchEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListUsage request
	ListUsage(ctx context.Context, params *ListUsageParams, 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) CreateForwarderWithApplicationVndAPIPlusJSONBodyWithResponse added in v3.0.14

func (c *ClientWithResponses) CreateForwarderWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateForwarderApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForwarderResponse, error)

func (*ClientWithResponses) CreateForwarderWithBodyWithResponse added in v3.0.14

func (c *ClientWithResponses) CreateForwarderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForwarderResponse, error)

CreateForwarderWithBodyWithResponse request with arbitrary body returning *CreateForwarderResponse

func (*ClientWithResponses) DeleteForwarderWithResponse added in v3.0.14

func (c *ClientWithResponses) DeleteForwarderWithResponse(ctx context.Context, forwarderId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteForwarderResponse, error)

DeleteForwarderWithResponse request returning *DeleteForwarderResponse

func (*ClientWithResponses) ExecuteTestForwarderWithBodyWithResponse added in v3.0.14

func (c *ClientWithResponses) ExecuteTestForwarderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecuteTestForwarderResponse, error)

ExecuteTestForwarderWithBodyWithResponse request with arbitrary body returning *ExecuteTestForwarderResponse

func (*ClientWithResponses) ExecuteTestForwarderWithResponse added in v3.0.14

func (c *ClientWithResponses) ExecuteTestForwarderWithResponse(ctx context.Context, body ExecuteTestForwarderJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecuteTestForwarderResponse, error)

func (*ClientWithResponses) GetEventWithResponse

func (c *ClientWithResponses) GetEventWithResponse(ctx context.Context, eventId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetEventResponse, error)

GetEventWithResponse request returning *GetEventResponse

func (*ClientWithResponses) GetForwarderTypeApiV1ForwarderTypesIdGetWithResponse added in v3.0.64

func (c *ClientWithResponses) GetForwarderTypeApiV1ForwarderTypesIdGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetForwarderTypeApiV1ForwarderTypesIdGetResponse, error)

GetForwarderTypeApiV1ForwarderTypesIdGetWithResponse request returning *GetForwarderTypeApiV1ForwarderTypesIdGetResponse

func (*ClientWithResponses) GetForwarderWithResponse added in v3.0.14

func (c *ClientWithResponses) GetForwarderWithResponse(ctx context.Context, forwarderId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetForwarderResponse, error)

GetForwarderWithResponse request returning *GetForwarderResponse

func (*ClientWithResponses) ListEventTypesWithResponse added in v3.0.69

func (c *ClientWithResponses) ListEventTypesWithResponse(ctx context.Context, params *ListEventTypesParams, reqEditors ...RequestEditorFn) (*ListEventTypesResponse, error)

ListEventTypesWithResponse request returning *ListEventTypesResponse

func (*ClientWithResponses) ListEventsWithResponse

func (c *ClientWithResponses) ListEventsWithResponse(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*ListEventsResponse, error)

ListEventsWithResponse request returning *ListEventsResponse

func (*ClientWithResponses) ListForwarderDeliveriesWithResponse added in v3.0.14

func (c *ClientWithResponses) ListForwarderDeliveriesWithResponse(ctx context.Context, forwarderId openapi_types.UUID, params *ListForwarderDeliveriesParams, reqEditors ...RequestEditorFn) (*ListForwarderDeliveriesResponse, error)

ListForwarderDeliveriesWithResponse request returning *ListForwarderDeliveriesResponse

func (*ClientWithResponses) ListForwarderTypesApiV1ForwarderTypesGetWithResponse added in v3.0.64

func (c *ClientWithResponses) ListForwarderTypesApiV1ForwarderTypesGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListForwarderTypesApiV1ForwarderTypesGetResponse, error)

ListForwarderTypesApiV1ForwarderTypesGetWithResponse request returning *ListForwarderTypesApiV1ForwarderTypesGetResponse

func (*ClientWithResponses) ListForwardersWithResponse added in v3.0.14

func (c *ClientWithResponses) ListForwardersWithResponse(ctx context.Context, params *ListForwardersParams, reqEditors ...RequestEditorFn) (*ListForwardersResponse, error)

ListForwardersWithResponse request returning *ListForwardersResponse

func (*ClientWithResponses) ListResourceTypesWithResponse added in v3.0.24

func (c *ClientWithResponses) ListResourceTypesWithResponse(ctx context.Context, params *ListResourceTypesParams, reqEditors ...RequestEditorFn) (*ListResourceTypesResponse, error)

ListResourceTypesWithResponse request returning *ListResourceTypesResponse

func (*ClientWithResponses) ListUsageWithResponse

func (c *ClientWithResponses) ListUsageWithResponse(ctx context.Context, params *ListUsageParams, reqEditors ...RequestEditorFn) (*ListUsageResponse, error)

ListUsageWithResponse request returning *ListUsageResponse

func (*ClientWithResponses) RecordEventWithApplicationVndAPIPlusJSONBodyWithResponse added in v3.0.12

func (c *ClientWithResponses) RecordEventWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, params *RecordEventParams, body RecordEventApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*RecordEventResponse, error)

func (*ClientWithResponses) RecordEventWithBodyWithResponse added in v3.0.12

func (c *ClientWithResponses) RecordEventWithBodyWithResponse(ctx context.Context, params *RecordEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RecordEventResponse, error)

RecordEventWithBodyWithResponse request with arbitrary body returning *RecordEventResponse

func (*ClientWithResponses) RetryFailedForwarderDeliveriesWithResponse added in v3.0.14

func (c *ClientWithResponses) RetryFailedForwarderDeliveriesWithResponse(ctx context.Context, forwarderId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RetryFailedForwarderDeliveriesResponse, error)

RetryFailedForwarderDeliveriesWithResponse request returning *RetryFailedForwarderDeliveriesResponse

func (*ClientWithResponses) RetryForwarderDeliveryWithResponse added in v3.0.14

func (c *ClientWithResponses) RetryForwarderDeliveryWithResponse(ctx context.Context, forwarderId openapi_types.UUID, deliveryId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RetryForwarderDeliveryResponse, error)

RetryForwarderDeliveryWithResponse request returning *RetryForwarderDeliveryResponse

func (*ClientWithResponses) SearchEventsWithBodyWithResponse added in v3.0.60

func (c *ClientWithResponses) SearchEventsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchEventsResponse, error)

SearchEventsWithBodyWithResponse request with arbitrary body returning *SearchEventsResponse

func (*ClientWithResponses) SearchEventsWithResponse added in v3.0.60

func (c *ClientWithResponses) SearchEventsWithResponse(ctx context.Context, body SearchEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchEventsResponse, error)

func (*ClientWithResponses) UpdateForwarderWithApplicationVndAPIPlusJSONBodyWithResponse added in v3.0.14

func (c *ClientWithResponses) UpdateForwarderWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, forwarderId openapi_types.UUID, body UpdateForwarderApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateForwarderResponse, error)

func (*ClientWithResponses) UpdateForwarderWithBodyWithResponse added in v3.0.14

func (c *ClientWithResponses) UpdateForwarderWithBodyWithResponse(ctx context.Context, forwarderId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateForwarderResponse, error)

UpdateForwarderWithBodyWithResponse request with arbitrary body returning *UpdateForwarderResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ListEventTypesWithResponse request
	ListEventTypesWithResponse(ctx context.Context, params *ListEventTypesParams, reqEditors ...RequestEditorFn) (*ListEventTypesResponse, error)

	// ListEventsWithResponse request
	ListEventsWithResponse(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*ListEventsResponse, error)

	// RecordEventWithBodyWithResponse request with any body
	RecordEventWithBodyWithResponse(ctx context.Context, params *RecordEventParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RecordEventResponse, error)

	RecordEventWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, params *RecordEventParams, body RecordEventApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*RecordEventResponse, error)

	// GetEventWithResponse request
	GetEventWithResponse(ctx context.Context, eventId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetEventResponse, error)

	// ListForwarderTypesApiV1ForwarderTypesGetWithResponse request
	ListForwarderTypesApiV1ForwarderTypesGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListForwarderTypesApiV1ForwarderTypesGetResponse, error)

	// GetForwarderTypeApiV1ForwarderTypesIdGetWithResponse request
	GetForwarderTypeApiV1ForwarderTypesIdGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetForwarderTypeApiV1ForwarderTypesIdGetResponse, error)

	// ListForwardersWithResponse request
	ListForwardersWithResponse(ctx context.Context, params *ListForwardersParams, reqEditors ...RequestEditorFn) (*ListForwardersResponse, error)

	// CreateForwarderWithBodyWithResponse request with any body
	CreateForwarderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForwarderResponse, error)

	CreateForwarderWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateForwarderApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForwarderResponse, error)

	// DeleteForwarderWithResponse request
	DeleteForwarderWithResponse(ctx context.Context, forwarderId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteForwarderResponse, error)

	// GetForwarderWithResponse request
	GetForwarderWithResponse(ctx context.Context, forwarderId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetForwarderResponse, error)

	// UpdateForwarderWithBodyWithResponse request with any body
	UpdateForwarderWithBodyWithResponse(ctx context.Context, forwarderId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateForwarderResponse, error)

	UpdateForwarderWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, forwarderId openapi_types.UUID, body UpdateForwarderApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateForwarderResponse, error)

	// RetryFailedForwarderDeliveriesWithResponse request
	RetryFailedForwarderDeliveriesWithResponse(ctx context.Context, forwarderId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RetryFailedForwarderDeliveriesResponse, error)

	// ListForwarderDeliveriesWithResponse request
	ListForwarderDeliveriesWithResponse(ctx context.Context, forwarderId openapi_types.UUID, params *ListForwarderDeliveriesParams, reqEditors ...RequestEditorFn) (*ListForwarderDeliveriesResponse, error)

	// RetryForwarderDeliveryWithResponse request
	RetryForwarderDeliveryWithResponse(ctx context.Context, forwarderId openapi_types.UUID, deliveryId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RetryForwarderDeliveryResponse, error)

	// ExecuteTestForwarderWithBodyWithResponse request with any body
	ExecuteTestForwarderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecuteTestForwarderResponse, error)

	ExecuteTestForwarderWithResponse(ctx context.Context, body ExecuteTestForwarderJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecuteTestForwarderResponse, error)

	// ListResourceTypesWithResponse request
	ListResourceTypesWithResponse(ctx context.Context, params *ListResourceTypesParams, reqEditors ...RequestEditorFn) (*ListResourceTypesResponse, error)

	// SearchEventsWithBodyWithResponse request with any body
	SearchEventsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchEventsResponse, error)

	SearchEventsWithResponse(ctx context.Context, body SearchEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchEventsResponse, error)

	// ListUsageWithResponse request
	ListUsageWithResponse(ctx context.Context, params *ListUsageParams, reqEditors ...RequestEditorFn) (*ListUsageResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateForwarderApplicationVndAPIPlusJSONRequestBody added in v3.0.14

type CreateForwarderApplicationVndAPIPlusJSONRequestBody = ForwarderRequest

CreateForwarderApplicationVndAPIPlusJSONRequestBody defines body for CreateForwarder for application/vnd.api+json ContentType.

type CreateForwarderResponse added in v3.0.14

type CreateForwarderResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON201 *ForwarderResponse
}

func ParseCreateForwarderResponse added in v3.0.14

func ParseCreateForwarderResponse(rsp *http.Response) (*CreateForwarderResponse, error)

ParseCreateForwarderResponse parses an HTTP response from a CreateForwarderWithResponse call

func (CreateForwarderResponse) ContentType added in v3.0.14

func (r CreateForwarderResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateForwarderResponse) Status added in v3.0.14

func (r CreateForwarderResponse) Status() string

Status returns HTTPResponse.Status

func (CreateForwarderResponse) StatusCode added in v3.0.14

func (r CreateForwarderResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteForwarderResponse added in v3.0.14

type DeleteForwarderResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteForwarderResponse added in v3.0.14

func ParseDeleteForwarderResponse(rsp *http.Response) (*DeleteForwarderResponse, error)

ParseDeleteForwarderResponse parses an HTTP response from a DeleteForwarderWithResponse call

func (DeleteForwarderResponse) ContentType added in v3.0.14

func (r DeleteForwarderResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteForwarderResponse) Status added in v3.0.14

func (r DeleteForwarderResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteForwarderResponse) StatusCode added in v3.0.14

func (r DeleteForwarderResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Event

type Event struct {
	// ActorId Identifier of the actor that caused the event. Free-form string — any identifier scheme is accepted.
	ActorId *string `json:"actor_id,omitempty"`

	// ActorLabel Human-readable label for the actor (e.g. an email address or API key name) at the time the event was recorded.
	ActorLabel *string `json:"actor_label,omitempty"`

	// ActorType Kind of actor that caused the event, e.g. `USER`, `API_KEY`, `SYSTEM`, or any other label you choose. Free-form string; the API does not constrain or interpret it.
	ActorType *string `json:"actor_type,omitempty"`

	// CreatedAt When the event was received and recorded.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Data Free-form payload attached to the event. Use it for resource snapshots (by convention under `data.snapshot`), request identifiers, or any other context the event needs to carry.
	Data *map[string]interface{} `json:"data,omitempty"`

	// Description Free-text description of the event. Included alongside `resource_id` in the `filter[search]` substring target.
	Description *string `json:"description,omitempty"`

	// DoNotForward When `true`, the event is recorded but not delivered to any forwarder. A delivery log entry with status `SKIPPED_DO_NOT_FORWARD` is written for each enabled forwarder so the skip is visible in the delivery log.
	DoNotForward *bool `json:"do_not_forward,omitempty"`

	// EventType What happened, e.g. `user.created`. Any non-empty string.
	EventType string `json:"event_type"`

	// IdempotencyKey The idempotency key used to deduplicate the record. Echoes the `Idempotency-Key` header if one was supplied, otherwise a key derived from the event's content.
	IdempotencyKey *string `json:"idempotency_key,omitempty"`

	// OccurredAt When the event actually happened. Defaults to the server receipt time (`created_at`).
	OccurredAt *time.Time `json:"occurred_at,omitempty"`

	// ResourceId Identifier of the specific resource the event is about.
	ResourceId string `json:"resource_id"`

	// ResourceType Kind of resource the event is about, e.g. `user`. Any non-empty string.
	ResourceType string `json:"resource_type"`
}

Event An audit event — a record that something happened, attributed to an actor and a resource.

When recording a snapshot of the resource at the time of the event, place it inside `data`. smplkit's own integrations nest it under `data.snapshot`, but the slot is yours to use however you like.

type EventListLinks struct {
	Next *string `json:"next,omitempty"`
}

EventListLinks defines model for EventListLinks.

type EventListMeta

type EventListMeta struct {
	PageSize int `json:"page_size"`
}

EventListMeta Cursor-pagination meta for the audit-event list endpoint.

Audit events are append-only at high cardinality (millions of rows per account at production tenants), so this endpoint stays on cursor pagination — the documented exception in ADR-014. Every other read-many endpoint in the platform follows the standard offset convention (`page[number]` / `page[size]`).

type EventListResponse

type EventListResponse struct {
	Data  []EventResource `json:"data"`
	Links *EventListLinks `json:"links,omitempty"`

	// Meta Cursor-pagination meta for the audit-event list endpoint.
	//
	// Audit events are append-only at high cardinality (millions of rows
	// per account at production tenants), so this endpoint stays on
	// cursor pagination — the documented exception in ADR-014. Every
	// other read-many endpoint in the platform follows the standard
	// offset convention (`page[number]` / `page[size]`).
	Meta EventListMeta `json:"meta"`
}

EventListResponse JSON:API collection response for audit events (cursor paged).

type EventRequest added in v3.0.34

type EventRequest struct {
	// Data JSON:API resource envelope for an audit event.
	//
	// `id` must not be specified for create requests (the server assigns it).
	Data EventResource `json:"data"`
}

EventRequest JSON:API request envelope for recording an audit event.

type EventResource

type EventResource struct {
	// Attributes An audit event — a record that something happened, attributed to
	// an actor and a resource.
	//
	// When recording a snapshot of the resource at the time of the event,
	// place it inside `data`. smplkit's own integrations nest it under
	// `data.snapshot`, but the slot is yours to use however you like.
	Attributes Event   `json:"attributes"`
	Id         *string `json:"id,omitempty"`
	Type       *string `json:"type,omitempty"`
}

EventResource JSON:API resource envelope for an audit event.

`id` must not be specified for create requests (the server assigns it).

type EventResponse

type EventResponse struct {
	// Data JSON:API resource envelope for an audit event.
	//
	// `id` must not be specified for create requests (the server assigns it).
	Data EventResource `json:"data"`
}

EventResponse JSON:API single-resource response for an audit event.

type EventSearchListLinks struct {
	// Next Opaque cursor token for the next page. POST the same body with `page[after]` set to this value to fetch the next page. Unlike the URL-form `links.next` returned by `GET /api/v1/events`, this is a bare cursor token — the client must re-issue a POST with its body, which the URL form cannot capture.
	Next *string `json:"next,omitempty"`
}

EventSearchListLinks defines model for EventSearchListLinks.

type EventSearchListMeta added in v3.0.60

type EventSearchListMeta struct {
	PageSize int `json:"page_size"`

	// Scan Scan statistics for a search response.
	//
	// Exposed so a selective JSON Logic filter doesn't silently look like
	// "0 matches" when the truth is "the scan ceiling was reached before
	// the filter had a chance to find page[size] matches."
	Scan EventSearchScanMeta `json:"scan"`
}

EventSearchListMeta Cursor-pagination + scan meta for the search response.

Mirrors `EventListMeta` (cursor pagination — `page_size` is the only pagination field) and adds the `scan` block above.

type EventSearchRequest added in v3.0.60

type EventSearchRequest struct {
	// Filter Optional JSON Logic expression evaluated against each row after column filters narrow the candidate set. Null, absent, or an empty object disables JSON Logic filtering. When present, the search is silently capped to the last 30 days by `occurred_at` (intersected with any explicit `filter[occurred_at]` the caller supplied).
	Filter *map[string]interface{} `json:"filter,omitempty"`

	// FilterActorId Exact match on the event's `actor_id` field.
	FilterActorId *string `json:"filter[actor_id],omitempty"`

	// FilterActorType Exact match on the event's `actor_type` field.
	FilterActorType *string `json:"filter[actor_type],omitempty"`

	// FilterDoNotForward When set, restrict to events whose `do_not_forward` flag matches the given boolean. Forwarder previews typically pass `false` to match live-pipeline semantics (events flagged `do_not_forward=true` are skipped by the forwarder pipeline).
	FilterDoNotForward *bool `json:"filter[do_not_forward],omitempty"`

	// FilterEventType Exact match on the event's `event_type` field.
	FilterEventType *string `json:"filter[event_type],omitempty"`

	// FilterOccurredAt Date range using interval notation, e.g. `[2026-04-01T00:00:00Z,2026-04-15T00:00:00Z)`. Required by `filter[search]` when the resource pair isn't provided. When a JSON Logic `filter` is present, the effective range is intersected with the last 30 days.
	FilterOccurredAt *string `json:"filter[occurred_at],omitempty"`

	// FilterResourceId Exact match on the event's `resource_id` field. Must be accompanied by `filter[resource_type]`.
	FilterResourceId *string `json:"filter[resource_id],omitempty"`

	// FilterResourceType Exact match on the event's `resource_type` field.
	FilterResourceType *string `json:"filter[resource_type],omitempty"`

	// FilterSearch Case-insensitive substring match on `resource_id` or `description`. Must be accompanied by either `filter[occurred_at]` or `filter[resource_type]` + `filter[resource_id]`.
	FilterSearch *string `json:"filter[search],omitempty"`

	// PageAfter Opaque cursor — pass the previous response's `links.next` cursor verbatim to fetch the next page. Keep the same `sort` value across paginated requests.
	PageAfter *string `json:"page[after],omitempty"`

	// PageSize Maximum events to return. Range 1..1000, default 1000 — matches every other list / search endpoint on the platform. Set explicitly to a smaller value when the consumer is rendering results card-by-card.
	PageSize *int `json:"page[size],omitempty"`

	// Sort Sort field: `occurred_at` or `created_at`, optionally prefixed with `-` for descending order. Default `-occurred_at` (newest first).
	Sort *string `json:"sort,omitempty"`
}

EventSearchRequest Request body for “POST /api/v1/search/events“.

Mirrors every column filter accepted by “GET /api/v1/events“ with identical semantics, and adds a top-level “filter“ field carrying a JSON Logic expression. When “filter“ is present the search is silently capped to the last 30 days by “occurred_at“; the expression is then evaluated in memory against each row that passes the column filters using the same “json-logic-qubit“ evaluator that runs in the forwarder pipeline (so search results match what would be forwarded).

Filter-combination rules match “GET /api/v1/events“ exactly:

  • “filter[resource_id]“ must be accompanied by “filter[resource_type]“ — the index is keyed on the pair.
  • “filter[search]“ must be accompanied by either “filter[occurred_at]“ or “filter[resource_type]“ + “filter[resource_id]“ — substring matching has no index, so an unbounded substring scan is rejected.

type EventSearchResponse added in v3.0.60

type EventSearchResponse struct {
	Data  []EventResource       `json:"data"`
	Links *EventSearchListLinks `json:"links,omitempty"`

	// Meta Cursor-pagination + scan meta for the search response.
	//
	// Mirrors `EventListMeta` (cursor pagination — `page_size` is the
	// only pagination field) and adds the `scan` block above.
	Meta EventSearchListMeta `json:"meta"`
}

EventSearchResponse JSON:API list envelope returned by the search endpoint.

Structurally identical to “EventListResponse“ from the list endpoint — the only difference is the extra `scan` block inside `meta` (`EventSearchListMeta` vs `EventListMeta`).

type EventSearchScanMeta added in v3.0.60

type EventSearchScanMeta struct {
	// Exhausted `true` if the server hit the per-request scan ceiling before finding `page[size]` matches. When true, paginate again with the returned `links.next` cursor to continue scanning past the ceiling.
	Exhausted bool `json:"exhausted"`

	// Matched Rows the JSON Logic expression matched. Equal to `len(data)` for the page being returned plus any matches found beyond the page size.
	Matched int `json:"matched"`

	// Scanned Rows scanned after column filters narrowed the candidate set, before the JSON Logic expression was applied.
	Scanned int `json:"scanned"`
}

EventSearchScanMeta Scan statistics for a search response.

Exposed so a selective JSON Logic filter doesn't silently look like "0 matches" when the truth is "the scan ceiling was reached before the filter had a chance to find page[size] matches."

type EventTypeAttributes added in v3.0.69

type EventTypeAttributes struct {
	// CreatedAt First sighting of this event_type for the account. When the request includes “filter[resource_type]“, this is the first sighting of the (event_type, resource_type) triple rather than the event_type overall.
	CreatedAt time.Time `json:"created_at"`

	// EventType The event_type slug. Same as the JSON:API “id“.
	EventType string `json:"event_type"`
}

EventTypeAttributes defines model for EventTypeAttributes.

type EventTypeListResponse added in v3.0.69

type EventTypeListResponse struct {
	Data []EventTypeResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

EventTypeListResponse defines model for EventTypeListResponse.

type EventTypeResource added in v3.0.69

type EventTypeResource struct {
	Attributes EventTypeAttributes `json:"attributes"`

	// Id The event_type slug.
	Id   string  `json:"id"`
	Type *string `json:"type,omitempty"`
}

EventTypeResource defines model for EventTypeResource.

type ExecuteTestForwarderJSONRequestBody added in v3.0.14

type ExecuteTestForwarderJSONRequestBody = TestForwarderRequest

ExecuteTestForwarderJSONRequestBody defines body for ExecuteTestForwarder for application/json ContentType.

type ExecuteTestForwarderResponse added in v3.0.14

type ExecuteTestForwarderResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TestForwarderResponse
}

func ParseExecuteTestForwarderResponse added in v3.0.14

func ParseExecuteTestForwarderResponse(rsp *http.Response) (*ExecuteTestForwarderResponse, error)

ParseExecuteTestForwarderResponse parses an HTTP response from a ExecuteTestForwarderWithResponse call

func (ExecuteTestForwarderResponse) ContentType added in v3.0.14

func (r ExecuteTestForwarderResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ExecuteTestForwarderResponse) Status added in v3.0.14

Status returns HTTPResponse.Status

func (ExecuteTestForwarderResponse) StatusCode added in v3.0.14

func (r ExecuteTestForwarderResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Forwarder added in v3.0.14

type Forwarder struct {
	// Configuration HTTP request configuration used to deliver an event to the destination.
	//
	// Used when the parent forwarder's “forwarder_type“ is one of the
	// HTTP-family destinations (“HTTP“, “DATADOG“, “SPLUNK_HEC“,
	// “SUMO_LOGIC“, “NEW_RELIC“, “HONEYCOMB“, “ELASTIC“). When other
	// transports land (“FTP“, “SQS“, …) their own configuration schemas
	// will join this one as members of a discriminated union under the
	// “configuration“ field of “Forwarder“.
	Configuration HttpConfiguration `json:"configuration"`

	// CreatedAt When the forwarder was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// DeletedAt When the forwarder was deleted. `null` for active forwarders.
	DeletedAt *time.Time `json:"deleted_at,omitempty"`

	// Description Free-text description for the forwarder.
	Description *string `json:"description,omitempty"`

	// Enabled Whether the forwarder is currently delivering events. Set to `false` to pause deliveries without deleting the forwarder.
	Enabled *bool `json:"enabled,omitempty"`

	// Filter JSON Logic expression evaluated against each event. The event is delivered only if the expression returns truthy. Omit to deliver every event.
	Filter *map[string]interface{} `json:"filter,omitempty"`

	// ForwarderType Supported forwarder destination types (ADR-050).
	ForwarderType ForwarderType `json:"forwarder_type"`

	// Name Human-readable name for the forwarder. Must contain at least one non-whitespace character.
	Name string `json:"name"`

	// Transform Template applied to each event before delivery. The shape depends on “transform_type“: for `JSONATA`, a string containing a JSONata expression. Omit to deliver the event JSON unchanged.
	Transform interface{} `json:"transform,omitempty"`

	// TransformType Engine used to evaluate “transform“. Must be set whenever “transform“ is set. Today only `JSONATA` is supported.
	TransformType *ForwarderTransformType `json:"transform_type,omitempty"`

	// UpdatedAt When the forwarder was last modified.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`

	// Version Monotonic counter incremented on every update, starting at 1.
	Version *int `json:"version,omitempty"`
}

Forwarder A destination that receives audit events recorded for the account.

Each event recorded for the account is evaluated against every enabled forwarder. If the filter expression evaluates truthy — or is absent — the event is shaped by the configured transform and delivered to the destination defined by “configuration“.

type ForwarderDelivery added in v3.0.14

type ForwarderDelivery struct {
	// AttemptNumber 1 for the initial delivery, incremented for each retry.
	AttemptNumber int `json:"attempt_number"`

	// CreatedAt When the delivery attempt was recorded.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Error Error message if the delivery did not complete.
	Error *string `json:"error,omitempty"`

	// EventId Event that was being delivered.
	EventId openapi_types.UUID `json:"event_id"`

	// ForwarderId Forwarder the delivery belongs to.
	ForwarderId openapi_types.UUID `json:"forwarder_id"`

	// LatencyMs Elapsed time of the delivery attempt in milliseconds.
	LatencyMs *int `json:"latency_ms,omitempty"`

	// Request The HTTP request as it was sent to the destination. Header values are redacted.
	Request *map[string]interface{} `json:"request,omitempty"`

	// ResponseBody Response body returned by the destination.
	ResponseBody *string `json:"response_body,omitempty"`

	// ResponseStatus HTTP status code returned by the destination.
	ResponseStatus *int `json:"response_status,omitempty"`

	// Status Delivery outcome. `SUCCEEDED` and `FAILED` are the live-delivery outcomes; `FILTERED_OUT` is recorded when the forwarder's filter rejected the event; `SKIPPED_DO_NOT_FORWARD` is recorded when the event was emitted with `do_not_forward=true`.
	Status ForwarderDeliveryStatus `json:"status"`
}

ForwarderDelivery A log entry for one attempt to deliver an event to a forwarder.

type ForwarderDeliveryListLinks struct {
	Next *string `json:"next,omitempty"`
}

ForwarderDeliveryListLinks defines model for ForwarderDeliveryListLinks.

type ForwarderDeliveryListMeta added in v3.0.47

type ForwarderDeliveryListMeta struct {
	PageSize int `json:"page_size"`
}

ForwarderDeliveryListMeta Cursor-pagination meta for the forwarder-delivery log endpoint.

Forwarder deliveries are append-only at high cardinality (one row per delivery attempt per event) and scroll with the same workload as audit events, so this endpoint stays on cursor pagination — the documented exception in ADR-014. The parent `/forwarders` collection follows the standard offset convention.

type ForwarderDeliveryListResponse added in v3.0.14

type ForwarderDeliveryListResponse struct {
	Data  []ForwarderDeliveryResource `json:"data"`
	Links *ForwarderDeliveryListLinks `json:"links,omitempty"`

	// Meta Cursor-pagination meta for the forwarder-delivery log endpoint.
	//
	// Forwarder deliveries are append-only at high cardinality (one row per
	// delivery attempt per event) and scroll with the same workload as
	// audit events, so this endpoint stays on cursor pagination — the
	// documented exception in ADR-014. The parent `/forwarders` collection
	// follows the standard offset convention.
	Meta ForwarderDeliveryListMeta `json:"meta"`
}

ForwarderDeliveryListResponse JSON:API collection response for forwarder deliveries (cursor paged).

type ForwarderDeliveryResource added in v3.0.14

type ForwarderDeliveryResource struct {
	// Attributes A log entry for one attempt to deliver an event to a forwarder.
	Attributes ForwarderDelivery `json:"attributes"`
	Id         string            `json:"id"`
	Type       *string           `json:"type,omitempty"`
}

ForwarderDeliveryResource JSON:API resource envelope for a forwarder delivery log entry.

type ForwarderDeliveryResponse added in v3.0.14

type ForwarderDeliveryResponse struct {
	// Data JSON:API resource envelope for a forwarder delivery log entry.
	Data ForwarderDeliveryResource `json:"data"`
}

ForwarderDeliveryResponse JSON:API single-resource response for a forwarder delivery.

type ForwarderDeliveryStatus added in v3.0.14

type ForwarderDeliveryStatus string

ForwarderDeliveryStatus Delivery outcome. `SUCCEEDED` and `FAILED` are the live-delivery outcomes; `FILTERED_OUT` is recorded when the forwarder's filter rejected the event; `SKIPPED_DO_NOT_FORWARD` is recorded when the event was emitted with `do_not_forward=true`.

const (
	FAILED              ForwarderDeliveryStatus = "FAILED"
	FILTEREDOUT         ForwarderDeliveryStatus = "FILTERED_OUT"
	SKIPPEDDONOTFORWARD ForwarderDeliveryStatus = "SKIPPED_DO_NOT_FORWARD"
	SUCCEEDED           ForwarderDeliveryStatus = "SUCCEEDED"
)

Defines values for ForwarderDeliveryStatus.

func (ForwarderDeliveryStatus) Valid added in v3.0.14

func (e ForwarderDeliveryStatus) Valid() bool

Valid indicates whether the value is a known member of the ForwarderDeliveryStatus enum.

type ForwarderListResponse added in v3.0.14

type ForwarderListResponse struct {
	Data []ForwarderResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

ForwarderListResponse JSON:API collection response for forwarders.

type ForwarderRequest added in v3.0.34

type ForwarderRequest struct {
	// Data JSON:API resource envelope for a forwarder.
	//
	// `id` must not be specified for create requests (the server assigns it).
	Data ForwarderResource `json:"data"`
}

ForwarderRequest JSON:API request envelope for creating or updating a forwarder.

type ForwarderResource added in v3.0.14

type ForwarderResource struct {
	// Attributes A destination that receives audit events recorded for the account.
	//
	// Each event recorded for the account is evaluated against every enabled
	// forwarder. If the filter expression evaluates truthy — or is absent —
	// the event is shaped by the configured transform and delivered to the
	// destination defined by “configuration“.
	Attributes Forwarder `json:"attributes"`
	Id         *string   `json:"id,omitempty"`
	Type       *string   `json:"type,omitempty"`
}

ForwarderResource JSON:API resource envelope for a forwarder.

`id` must not be specified for create requests (the server assigns it).

type ForwarderResponse added in v3.0.14

type ForwarderResponse struct {
	// Data JSON:API resource envelope for a forwarder.
	//
	// `id` must not be specified for create requests (the server assigns it).
	Data ForwarderResource `json:"data"`
}

ForwarderResponse JSON:API single-resource response envelope for a forwarder.

type ForwarderTransformType added in v3.0.51

type ForwarderTransformType string

ForwarderTransformType Engine used to evaluate “transform“. Must be set whenever “transform“ is set. Today only `JSONATA` is supported.

const (
	JSONATA ForwarderTransformType = "JSONATA"
)

Defines values for ForwarderTransformType.

func (ForwarderTransformType) Valid added in v3.0.51

func (e ForwarderTransformType) Valid() bool

Valid indicates whether the value is a known member of the ForwarderTransformType enum.

type ForwarderType added in v3.0.25

type ForwarderType string

ForwarderType Supported forwarder destination types (ADR-050).

const (
	Datadog   ForwarderType = "datadog"
	Elastic   ForwarderType = "elastic"
	Honeycomb ForwarderType = "honeycomb"
	Http      ForwarderType = "http"
	NewRelic  ForwarderType = "new_relic"
	SplunkHec ForwarderType = "splunk_hec"
	SumoLogic ForwarderType = "sumo_logic"
)

Defines values for ForwarderType.

func (ForwarderType) Valid added in v3.0.25

func (e ForwarderType) Valid() bool

Valid indicates whether the value is a known member of the ForwarderType enum.

type ForwarderTypeAttributes added in v3.0.64

type ForwarderTypeAttributes struct {
	// BaseType Transport family — today only `HTTP`. New base types will add their own configuration shape and runtime handler.
	BaseType string `json:"base_type"`

	// Configuration HTTP-base-type delivery template.
	Configuration ForwarderTypeHttpConfiguration `json:"configuration"`

	// DocsUrl Link to the vendor's own documentation for this destination.
	DocsUrl *string `json:"docs_url,omitempty"`

	// Icon Absolute URL to the icon asset, served by audit at `/api/v1/forwarder_types/{id}/icon`.
	Icon string `json:"icon"`

	// IsCustom True for the synthetic `http` Custom HTTP entry, which has no vendor template — the customer supplies URL, headers, and transform from scratch. False for branded types.
	IsCustom bool `json:"is_custom"`

	// Name Human-readable label shown in the type-picker.
	Name string `json:"name"`

	// Placeholders UI metadata keyed by placeholder name. Each `{name}` token appearing in `configuration` (URL, header value) has a matching entry here describing how to prompt for it.
	Placeholders map[string]ForwarderTypePlaceholder `json:"placeholders"`

	// Transform Default transform shipped with the type.
	Transform *ForwarderTypeTransform `json:"transform,omitempty"`
}

ForwarderTypeAttributes The catalog entry's attributes — one branded forwarder type or the synthetic Custom HTTP entry.

type ForwarderTypeHeader added in v3.0.64

type ForwarderTypeHeader struct {
	// Name Header name.
	Name string `json:"name"`

	// Value Header value template. Strings of the form `{name}` are placeholders the customer fills in; look up `name` in `placeholders` for the UI metadata.
	Value string `json:"value"`
}

ForwarderTypeHeader A header entry in a catalog entry's configuration template.

“value“ may contain “{placeholder}“ tokens that the customer fills in at create time; header values without placeholders are fixed by the vendor and the server enforces the literal value.

type ForwarderTypeHttpConfiguration added in v3.0.64

type ForwarderTypeHttpConfiguration struct {
	// Headers Headers attached to each delivery request.
	Headers []ForwarderTypeHeader `json:"headers"`

	// Method HTTP method.
	Method string `json:"method"`

	// SuccessStatus HTTP response status indicating a successful delivery — either a specific code (`200`, `204`) or a class (`2xx`).
	SuccessStatus string `json:"success_status"`

	// Url URL template. `null` for the synthetic `http` (Custom HTTP) entry, where the customer supplies the URL from scratch. May contain `{name}` placeholders that map to the `placeholders` block.
	Url *string `json:"url"`
}

ForwarderTypeHttpConfiguration HTTP-base-type delivery template.

type ForwarderTypeListResponse added in v3.0.64

type ForwarderTypeListResponse struct {
	Data []ForwarderTypeResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

ForwarderTypeListResponse JSON:API collection response for forwarder types.

type ForwarderTypePlaceholder added in v3.0.64

type ForwarderTypePlaceholder struct {
	// Default Pre-selected value when `enum` is set, or the default for a free-text field.
	Default *string `json:"default,omitempty"`

	// Enum If set, the value must be one of the listed strings — render as a dropdown.
	Enum *[]string `json:"enum,omitempty"`

	// Label Human-readable label for the input.
	Label string `json:"label"`

	// Placeholder HTML-input hint text shown when the field is empty.
	Placeholder *string `json:"placeholder,omitempty"`

	// Secret If true, mask the value in the UI and treat as a credential.
	Secret *bool `json:"secret,omitempty"`
}

ForwarderTypePlaceholder UI metadata for one “{name}“ placeholder in the configuration.

type ForwarderTypeResource added in v3.0.64

type ForwarderTypeResource struct {
	// Attributes The catalog entry's attributes — one branded forwarder type or the
	// synthetic Custom HTTP entry.
	Attributes ForwarderTypeAttributes `json:"attributes"`

	// Id Lowercase forwarder type id — matches `forwarder.forwarder_type` values and is the filename stem of `forwarder_types/<id>.yaml`.
	Id   string  `json:"id"`
	Type *string `json:"type,omitempty"`
}

ForwarderTypeResource JSON:API resource envelope for a forwarder type.

type ForwarderTypeResponse added in v3.0.64

type ForwarderTypeResponse struct {
	// Data JSON:API resource envelope for a forwarder type.
	Data ForwarderTypeResource `json:"data"`
}

ForwarderTypeResponse JSON:API single-resource response for a forwarder type.

type ForwarderTypeTransform added in v3.0.64

type ForwarderTypeTransform struct {
	// Default Default template; customers can override per forwarder.
	Default string `json:"default"`

	// Type Engine name. Today only `JSONATA`.
	Type string `json:"type"`
}

ForwarderTypeTransform Default transform shipped with the type.

type GetEventResponse

type GetEventResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *EventResponse
}

func ParseGetEventResponse

func ParseGetEventResponse(rsp *http.Response) (*GetEventResponse, error)

ParseGetEventResponse parses an HTTP response from a GetEventWithResponse call

func (GetEventResponse) ContentType

func (r GetEventResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetEventResponse) Status

func (r GetEventResponse) Status() string

Status returns HTTPResponse.Status

func (GetEventResponse) StatusCode

func (r GetEventResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetForwarderResponse added in v3.0.14

type GetForwarderResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ForwarderResponse
}

func ParseGetForwarderResponse added in v3.0.14

func ParseGetForwarderResponse(rsp *http.Response) (*GetForwarderResponse, error)

ParseGetForwarderResponse parses an HTTP response from a GetForwarderWithResponse call

func (GetForwarderResponse) ContentType added in v3.0.14

func (r GetForwarderResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetForwarderResponse) Status added in v3.0.14

func (r GetForwarderResponse) Status() string

Status returns HTTPResponse.Status

func (GetForwarderResponse) StatusCode added in v3.0.14

func (r GetForwarderResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetForwarderTypeApiV1ForwarderTypesIdGetResponse added in v3.0.64

type GetForwarderTypeApiV1ForwarderTypesIdGetResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ForwarderTypeResponse
}

func ParseGetForwarderTypeApiV1ForwarderTypesIdGetResponse added in v3.0.64

func ParseGetForwarderTypeApiV1ForwarderTypesIdGetResponse(rsp *http.Response) (*GetForwarderTypeApiV1ForwarderTypesIdGetResponse, error)

ParseGetForwarderTypeApiV1ForwarderTypesIdGetResponse parses an HTTP response from a GetForwarderTypeApiV1ForwarderTypesIdGetWithResponse call

func (GetForwarderTypeApiV1ForwarderTypesIdGetResponse) ContentType added in v3.0.64

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetForwarderTypeApiV1ForwarderTypesIdGetResponse) Status added in v3.0.64

Status returns HTTPResponse.Status

func (GetForwarderTypeApiV1ForwarderTypesIdGetResponse) StatusCode added in v3.0.64

StatusCode returns HTTPResponse.StatusCode

type HttpConfiguration added in v3.0.51

type HttpConfiguration struct {
	// Headers HTTP headers attached to each delivery request.
	Headers *[]HttpHeader `json:"headers,omitempty"`

	// Method HTTP method used when delivering an event.
	Method *HttpConfigurationMethod `json:"method,omitempty"`

	// SuccessStatus HTTP response status that indicates a successful delivery. Either a specific status code (e.g. `200`, `204`) or a status class (`1xx`, `2xx`, `3xx`, `4xx`, `5xx`).
	SuccessStatus *string `json:"success_status,omitempty"`

	// Url Destination URL. Must be an absolute `http://` or `https://` URL with a hostname (e.g. `https://siem.example.com/in`).
	Url string `json:"url"`
}

HttpConfiguration HTTP request configuration used to deliver an event to the destination.

Used when the parent forwarder's “forwarder_type“ is one of the HTTP-family destinations (“HTTP“, “DATADOG“, “SPLUNK_HEC“, “SUMO_LOGIC“, “NEW_RELIC“, “HONEYCOMB“, “ELASTIC“). When other transports land (“FTP“, “SQS“, …) their own configuration schemas will join this one as members of a discriminated union under the “configuration“ field of “Forwarder“.

type HttpConfigurationMethod added in v3.0.51

type HttpConfigurationMethod string

HttpConfigurationMethod HTTP method used when delivering an event.

const (
	HttpConfigurationMethodDELETE HttpConfigurationMethod = "DELETE"
	HttpConfigurationMethodGET    HttpConfigurationMethod = "GET"
	HttpConfigurationMethodPATCH  HttpConfigurationMethod = "PATCH"
	HttpConfigurationMethodPOST   HttpConfigurationMethod = "POST"
	HttpConfigurationMethodPUT    HttpConfigurationMethod = "PUT"
)

Defines values for HttpConfigurationMethod.

func (HttpConfigurationMethod) Valid added in v3.0.51

func (e HttpConfigurationMethod) Valid() bool

Valid indicates whether the value is a known member of the HttpConfigurationMethod enum.

type HttpHeader added in v3.0.14

type HttpHeader struct {
	// Name Header name.
	Name string `json:"name"`

	// Value Header value. Stored encrypted at rest; returned as plaintext on `GET`.
	Value string `json:"value"`
}

HttpHeader A single HTTP header attached to a forwarder delivery request.

Header values are encrypted at the application layer before persistence regardless of header name; the wire representation here is always plaintext on both the request and the response, so a `GET → mutate → PUT` round-trip preserves header values without requiring the customer to re-enter secrets.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListEventTypesParams added in v3.0.69

type ListEventTypesParams struct {
	FilterResourceType *string `form:"filter[resource_type],omitempty" json:"filter[resource_type],omitempty"`

	// Sort Field to sort by. Prefix with `-` for descending order. Default: `key`. Allowed values: `key`, `-key`.
	Sort *ListEventTypesParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListEventTypesParams defines parameters for ListEventTypes.

type ListEventTypesParamsSort added in v3.0.69

type ListEventTypesParamsSort string

ListEventTypesParamsSort defines parameters for ListEventTypes.

const (
	ListEventTypesParamsSortKey      ListEventTypesParamsSort = "key"
	ListEventTypesParamsSortMinusKey ListEventTypesParamsSort = "-key"
)

Defines values for ListEventTypesParamsSort.

func (ListEventTypesParamsSort) Valid added in v3.0.69

func (e ListEventTypesParamsSort) Valid() bool

Valid indicates whether the value is a known member of the ListEventTypesParamsSort enum.

type ListEventTypesResponse added in v3.0.69

type ListEventTypesResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *EventTypeListResponse
}

func ParseListEventTypesResponse added in v3.0.69

func ParseListEventTypesResponse(rsp *http.Response) (*ListEventTypesResponse, error)

ParseListEventTypesResponse parses an HTTP response from a ListEventTypesWithResponse call

func (ListEventTypesResponse) ContentType added in v3.0.69

func (r ListEventTypesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListEventTypesResponse) Status added in v3.0.69

func (r ListEventTypesResponse) Status() string

Status returns HTTPResponse.Status

func (ListEventTypesResponse) StatusCode added in v3.0.69

func (r ListEventTypesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListEventsParams

type ListEventsParams struct {
	FilterOccurredAt   *string `form:"filter[occurred_at],omitempty" json:"filter[occurred_at],omitempty"`
	FilterActorType    *string `form:"filter[actor_type],omitempty" json:"filter[actor_type],omitempty"`
	FilterActorId      *string `form:"filter[actor_id],omitempty" json:"filter[actor_id],omitempty"`
	FilterEventType    *string `form:"filter[event_type],omitempty" json:"filter[event_type],omitempty"`
	FilterResourceType *string `form:"filter[resource_type],omitempty" json:"filter[resource_type],omitempty"`
	FilterResourceId   *string `form:"filter[resource_id],omitempty" json:"filter[resource_id],omitempty"`

	// FilterSearch Case-insensitive substring match against `resource_id` or `description`. Use `filter[resource_id]` for an exact match on `resource_id`.
	FilterSearch *string `form:"filter[search],omitempty" json:"filter[search],omitempty"`

	// FilterDoNotForward When set, restrict to events whose `do_not_forward` flag matches the given boolean. Forwarder previews typically pass `false` to match live-pipeline semantics (events flagged `do_not_forward=true` are skipped by the forwarder pipeline).
	FilterDoNotForward *bool   `form:"filter[do_not_forward],omitempty" json:"filter[do_not_forward],omitempty"`
	PageSize           *int    `form:"page[size],omitempty" json:"page[size],omitempty"`
	PageAfter          *string `form:"page[after],omitempty" json:"page[after],omitempty"`

	// Sort Field to sort by. Prefix with `-` for descending order. Default: `-occurred_at`. Allowed values: `created_at`, `-created_at`, `occurred_at`, `-occurred_at`.
	Sort *ListEventsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`
}

ListEventsParams defines parameters for ListEvents.

type ListEventsParamsSort added in v3.0.39

type ListEventsParamsSort string

ListEventsParamsSort defines parameters for ListEvents.

const (
	ListEventsParamsSortCreatedAt       ListEventsParamsSort = "created_at"
	ListEventsParamsSortMinusCreatedAt  ListEventsParamsSort = "-created_at"
	ListEventsParamsSortMinusOccurredAt ListEventsParamsSort = "-occurred_at"
	ListEventsParamsSortOccurredAt      ListEventsParamsSort = "occurred_at"
)

Defines values for ListEventsParamsSort.

func (ListEventsParamsSort) Valid added in v3.0.39

func (e ListEventsParamsSort) Valid() bool

Valid indicates whether the value is a known member of the ListEventsParamsSort enum.

type ListEventsResponse

type ListEventsResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *EventListResponse
}

func ParseListEventsResponse

func ParseListEventsResponse(rsp *http.Response) (*ListEventsResponse, error)

ParseListEventsResponse parses an HTTP response from a ListEventsWithResponse call

func (ListEventsResponse) ContentType

func (r ListEventsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListEventsResponse) Status

func (r ListEventsResponse) Status() string

Status returns HTTPResponse.Status

func (ListEventsResponse) StatusCode

func (r ListEventsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListForwarderDeliveriesParams added in v3.0.14

type ListForwarderDeliveriesParams struct {
	FilterStatus    *string `form:"filter[status],omitempty" json:"filter[status],omitempty"`
	FilterCreatedAt *string `form:"filter[created_at],omitempty" json:"filter[created_at],omitempty"`
	FilterEventId   *string `form:"filter[event_id],omitempty" json:"filter[event_id],omitempty"`
	PageSize        *int    `form:"page[size],omitempty" json:"page[size],omitempty"`
	PageAfter       *string `form:"page[after],omitempty" json:"page[after],omitempty"`

	// Sort Field to sort by. Prefix with `-` for descending order. Default: `-created_at`. Allowed values: `created_at`, `-created_at`.
	Sort *ListForwarderDeliveriesParamsSort `form:"sort,omitempty" json:"sort,omitempty"`
}

ListForwarderDeliveriesParams defines parameters for ListForwarderDeliveries.

type ListForwarderDeliveriesParamsSort added in v3.0.39

type ListForwarderDeliveriesParamsSort string

ListForwarderDeliveriesParamsSort defines parameters for ListForwarderDeliveries.

const (
	CreatedAt      ListForwarderDeliveriesParamsSort = "created_at"
	MinusCreatedAt ListForwarderDeliveriesParamsSort = "-created_at"
)

Defines values for ListForwarderDeliveriesParamsSort.

func (ListForwarderDeliveriesParamsSort) Valid added in v3.0.39

Valid indicates whether the value is a known member of the ListForwarderDeliveriesParamsSort enum.

type ListForwarderDeliveriesResponse added in v3.0.14

type ListForwarderDeliveriesResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ForwarderDeliveryListResponse
}

func ParseListForwarderDeliveriesResponse added in v3.0.14

func ParseListForwarderDeliveriesResponse(rsp *http.Response) (*ListForwarderDeliveriesResponse, error)

ParseListForwarderDeliveriesResponse parses an HTTP response from a ListForwarderDeliveriesWithResponse call

func (ListForwarderDeliveriesResponse) ContentType added in v3.0.14

func (r ListForwarderDeliveriesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListForwarderDeliveriesResponse) Status added in v3.0.14

Status returns HTTPResponse.Status

func (ListForwarderDeliveriesResponse) StatusCode added in v3.0.14

func (r ListForwarderDeliveriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListForwarderTypesApiV1ForwarderTypesGetResponse added in v3.0.64

type ListForwarderTypesApiV1ForwarderTypesGetResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ForwarderTypeListResponse
}

func ParseListForwarderTypesApiV1ForwarderTypesGetResponse added in v3.0.64

func ParseListForwarderTypesApiV1ForwarderTypesGetResponse(rsp *http.Response) (*ListForwarderTypesApiV1ForwarderTypesGetResponse, error)

ParseListForwarderTypesApiV1ForwarderTypesGetResponse parses an HTTP response from a ListForwarderTypesApiV1ForwarderTypesGetWithResponse call

func (ListForwarderTypesApiV1ForwarderTypesGetResponse) ContentType added in v3.0.64

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListForwarderTypesApiV1ForwarderTypesGetResponse) Status added in v3.0.64

Status returns HTTPResponse.Status

func (ListForwarderTypesApiV1ForwarderTypesGetResponse) StatusCode added in v3.0.64

StatusCode returns HTTPResponse.StatusCode

type ListForwardersParams added in v3.0.14

type ListForwardersParams struct {
	FilterForwarderType *string `form:"filter[forwarder_type],omitempty" json:"filter[forwarder_type],omitempty"`
	FilterEnabled       *bool   `form:"filter[enabled],omitempty" json:"filter[enabled],omitempty"`

	// Sort Field to sort by. Prefix with `-` for descending order. Default: `-created_at`. Allowed values: `created_at`, `-created_at`, `updated_at`, `-updated_at`.
	Sort *ListForwardersParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListForwardersParams defines parameters for ListForwarders.

type ListForwardersParamsSort added in v3.0.39

type ListForwardersParamsSort string

ListForwardersParamsSort defines parameters for ListForwarders.

const (
	ListForwardersParamsSortCreatedAt      ListForwardersParamsSort = "created_at"
	ListForwardersParamsSortMinusCreatedAt ListForwardersParamsSort = "-created_at"
	ListForwardersParamsSortMinusUpdatedAt ListForwardersParamsSort = "-updated_at"
	ListForwardersParamsSortUpdatedAt      ListForwardersParamsSort = "updated_at"
)

Defines values for ListForwardersParamsSort.

func (ListForwardersParamsSort) Valid added in v3.0.39

func (e ListForwardersParamsSort) Valid() bool

Valid indicates whether the value is a known member of the ListForwardersParamsSort enum.

type ListForwardersResponse added in v3.0.14

type ListForwardersResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ForwarderListResponse
}

func ParseListForwardersResponse added in v3.0.14

func ParseListForwardersResponse(rsp *http.Response) (*ListForwardersResponse, error)

ParseListForwardersResponse parses an HTTP response from a ListForwardersWithResponse call

func (ListForwardersResponse) ContentType added in v3.0.14

func (r ListForwardersResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListForwardersResponse) Status added in v3.0.14

func (r ListForwardersResponse) Status() string

Status returns HTTPResponse.Status

func (ListForwardersResponse) StatusCode added in v3.0.14

func (r ListForwardersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListMeta added in v3.0.47

type ListMeta struct {
	// Pagination Pagination block returned inside “meta“ on every list response.
	//
	// “page“ and “size“ are always present and echo the parameters that
	// served the response (their defaults when the client omitted them).
	// “total“ and “total_pages“ are present only when the request included
	// “meta[total]=true“.
	Pagination PaginationMeta `json:"pagination"`
}

ListMeta Top-level “meta“ block included on every JSON:API list response.

type ListResourceTypesParams added in v3.0.24

type ListResourceTypesParams struct {
	// Sort Field to sort by. Prefix with `-` for descending order. Default: `key`. Allowed values: `key`, `-key`.
	Sort *ListResourceTypesParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListResourceTypesParams defines parameters for ListResourceTypes.

type ListResourceTypesParamsSort added in v3.0.39

type ListResourceTypesParamsSort string

ListResourceTypesParamsSort defines parameters for ListResourceTypes.

const (
	ListResourceTypesParamsSortKey      ListResourceTypesParamsSort = "key"
	ListResourceTypesParamsSortMinusKey ListResourceTypesParamsSort = "-key"
)

Defines values for ListResourceTypesParamsSort.

func (ListResourceTypesParamsSort) Valid added in v3.0.39

Valid indicates whether the value is a known member of the ListResourceTypesParamsSort enum.

type ListResourceTypesResponse added in v3.0.24

type ListResourceTypesResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ResourceTypeListResponse
}

func ParseListResourceTypesResponse added in v3.0.24

func ParseListResourceTypesResponse(rsp *http.Response) (*ListResourceTypesResponse, error)

ParseListResourceTypesResponse parses an HTTP response from a ListResourceTypesWithResponse call

func (ListResourceTypesResponse) ContentType added in v3.0.24

func (r ListResourceTypesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListResourceTypesResponse) Status added in v3.0.24

func (r ListResourceTypesResponse) Status() string

Status returns HTTPResponse.Status

func (ListResourceTypesResponse) StatusCode added in v3.0.24

func (r ListResourceTypesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListUsageParams

type ListUsageParams struct {
	// FilterPeriod Period to report. `current` is the only supported value.
	FilterPeriod string `form:"filter[period]" json:"filter[period]"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListUsageParams defines parameters for ListUsage.

type ListUsageResponse

type ListUsageResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *UsageResponse
}

func ParseListUsageResponse

func ParseListUsageResponse(rsp *http.Response) (*ListUsageResponse, error)

ParseListUsageResponse parses an HTTP response from a ListUsageWithResponse call

func (ListUsageResponse) ContentType

func (r ListUsageResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListUsageResponse) Status

func (r ListUsageResponse) Status() string

Status returns HTTPResponse.Status

func (ListUsageResponse) StatusCode

func (r ListUsageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PaginationMeta added in v3.0.47

type PaginationMeta struct {
	// Page 1-based page number returned.
	Page int `json:"page"`

	// Size Number of items per page.
	Size int `json:"size"`

	// Total Total number of matching items across all pages. Present only when the request included `meta[total]=true`.
	Total *int `json:"total,omitempty"`

	// TotalPages Total number of pages at the requested page size. Present only when the request included `meta[total]=true`.
	TotalPages *int `json:"total_pages,omitempty"`
}

PaginationMeta Pagination block returned inside “meta“ on every list response.

“page“ and “size“ are always present and echo the parameters that served the response (their defaults when the client omitted them). “total“ and “total_pages“ are present only when the request included “meta[total]=true“.

type RecordEventApplicationVndAPIPlusJSONRequestBody added in v3.0.12

type RecordEventApplicationVndAPIPlusJSONRequestBody = EventRequest

RecordEventApplicationVndAPIPlusJSONRequestBody defines body for RecordEvent for application/vnd.api+json ContentType.

type RecordEventParams added in v3.0.12

type RecordEventParams struct {
	IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}

RecordEventParams defines parameters for RecordEvent.

type RecordEventResponse added in v3.0.12

type RecordEventResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *EventResponse
	ApplicationvndApiJSON201 *EventResponse
}

func ParseRecordEventResponse added in v3.0.12

func ParseRecordEventResponse(rsp *http.Response) (*RecordEventResponse, error)

ParseRecordEventResponse parses an HTTP response from a RecordEventWithResponse call

func (RecordEventResponse) ContentType added in v3.0.12

func (r RecordEventResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RecordEventResponse) Status added in v3.0.12

func (r RecordEventResponse) Status() string

Status returns HTTPResponse.Status

func (RecordEventResponse) StatusCode added in v3.0.12

func (r RecordEventResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type ResourceTypeAttributes added in v3.0.24

type ResourceTypeAttributes struct {
	// CreatedAt First sighting of this resource_type for the account.
	CreatedAt time.Time `json:"created_at"`

	// ResourceType The resource_type slug. Same as the JSON:API “id“.
	ResourceType string `json:"resource_type"`
}

ResourceTypeAttributes defines model for ResourceTypeAttributes.

type ResourceTypeListResponse added in v3.0.24

type ResourceTypeListResponse struct {
	Data []ResourceTypeResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

ResourceTypeListResponse defines model for ResourceTypeListResponse.

type ResourceTypeResource added in v3.0.24

type ResourceTypeResource struct {
	Attributes ResourceTypeAttributes `json:"attributes"`

	// Id The resource_type slug.
	Id   string  `json:"id"`
	Type *string `json:"type,omitempty"`
}

ResourceTypeResource defines model for ResourceTypeResource.

type RetryFailedDeliveriesSummary added in v3.0.14

type RetryFailedDeliveriesSummary struct {
	// Attempted Number of failed deliveries that were re-attempted.
	Attempted int `json:"attempted"`

	// Failed Number of re-attempts that failed again.
	Failed int `json:"failed"`

	// Succeeded Number of re-attempts that succeeded.
	Succeeded int `json:"succeeded"`
}

RetryFailedDeliveriesSummary Counts returned by the retry-failed-deliveries action.

type RetryFailedForwarderDeliveriesResponse added in v3.0.14

type RetryFailedForwarderDeliveriesResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *RetryFailedDeliveriesSummary
}

func ParseRetryFailedForwarderDeliveriesResponse added in v3.0.14

func ParseRetryFailedForwarderDeliveriesResponse(rsp *http.Response) (*RetryFailedForwarderDeliveriesResponse, error)

ParseRetryFailedForwarderDeliveriesResponse parses an HTTP response from a RetryFailedForwarderDeliveriesWithResponse call

func (RetryFailedForwarderDeliveriesResponse) ContentType added in v3.0.14

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RetryFailedForwarderDeliveriesResponse) Status added in v3.0.14

Status returns HTTPResponse.Status

func (RetryFailedForwarderDeliveriesResponse) StatusCode added in v3.0.14

StatusCode returns HTTPResponse.StatusCode

type RetryForwarderDeliveryResponse added in v3.0.14

type RetryForwarderDeliveryResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ForwarderDeliveryResponse
}

func ParseRetryForwarderDeliveryResponse added in v3.0.14

func ParseRetryForwarderDeliveryResponse(rsp *http.Response) (*RetryForwarderDeliveryResponse, error)

ParseRetryForwarderDeliveryResponse parses an HTTP response from a RetryForwarderDeliveryWithResponse call

func (RetryForwarderDeliveryResponse) ContentType added in v3.0.14

func (r RetryForwarderDeliveryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RetryForwarderDeliveryResponse) Status added in v3.0.14

Status returns HTTPResponse.Status

func (RetryForwarderDeliveryResponse) StatusCode added in v3.0.14

func (r RetryForwarderDeliveryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SearchEventsJSONRequestBody added in v3.0.60

type SearchEventsJSONRequestBody = EventSearchRequest

SearchEventsJSONRequestBody defines body for SearchEvents for application/json ContentType.

type SearchEventsResponse added in v3.0.60

type SearchEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *EventSearchResponse
}

func ParseSearchEventsResponse added in v3.0.60

func ParseSearchEventsResponse(rsp *http.Response) (*SearchEventsResponse, error)

ParseSearchEventsResponse parses an HTTP response from a SearchEventsWithResponse call

func (SearchEventsResponse) ContentType added in v3.0.60

func (r SearchEventsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SearchEventsResponse) Status added in v3.0.60

func (r SearchEventsResponse) Status() string

Status returns HTTPResponse.Status

func (SearchEventsResponse) StatusCode added in v3.0.60

func (r SearchEventsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TestForwarderRequest added in v3.0.14

type TestForwarderRequest struct {
	// Body Request body sent to the destination. When omitted, an empty body is sent (suitable for connectivity probes). When set, the body is sent verbatim — pair with an appropriate `Content-Type` entry in `headers` so the destination interprets it correctly. Limit 1 MiB.
	Body *string `json:"body,omitempty"`

	// Headers HTTP headers attached to the test request.
	Headers *[]HttpHeader `json:"headers,omitempty"`

	// Method HTTP method used for the test request.
	Method *TestForwarderRequestMethod `json:"method,omitempty"`

	// SuccessStatus HTTP response status that indicates success. Either a specific status code (e.g. `200`, `204`) or a status class (`1xx`, `2xx`, `3xx`, `4xx`, `5xx`).
	SuccessStatus *string `json:"success_status,omitempty"`

	// TimeoutMs Per-request timeout in milliseconds. Capped at 30 seconds.
	TimeoutMs *int `json:"timeout_ms,omitempty"`

	// Url Destination URL. Must be an absolute `http://` or `https://` URL with a hostname (e.g. `https://siem.example.com/in`).
	Url string `json:"url"`
}

TestForwarderRequest Inputs to the test-forwarder action.

Mirrors a forwarder's HTTP destination configuration with one addition: `timeout_ms`, applied per-request and capped server-side.

type TestForwarderRequestMethod added in v3.0.34

type TestForwarderRequestMethod string

TestForwarderRequestMethod HTTP method used for the test request.

const (
	TestForwarderRequestMethodDELETE TestForwarderRequestMethod = "DELETE"
	TestForwarderRequestMethodGET    TestForwarderRequestMethod = "GET"
	TestForwarderRequestMethodPATCH  TestForwarderRequestMethod = "PATCH"
	TestForwarderRequestMethodPOST   TestForwarderRequestMethod = "POST"
	TestForwarderRequestMethodPUT    TestForwarderRequestMethod = "PUT"
)

Defines values for TestForwarderRequestMethod.

func (TestForwarderRequestMethod) Valid added in v3.0.34

func (e TestForwarderRequestMethod) Valid() bool

Valid indicates whether the value is a known member of the TestForwarderRequestMethod enum.

type TestForwarderResponse added in v3.0.14

type TestForwarderResponse struct {
	// Error Error message if the request did not complete.
	Error *string `json:"error,omitempty"`

	// LatencyMs Elapsed time of the request in milliseconds.
	LatencyMs *int `json:"latency_ms"`

	// ResponseBody Response body returned by the destination.
	ResponseBody *string `json:"response_body,omitempty"`

	// ResponseHeaders Headers returned by the destination.
	ResponseHeaders *map[string]string `json:"response_headers,omitempty"`

	// ResponseStatus HTTP status code returned by the destination.
	ResponseStatus *int `json:"response_status"`

	// Succeeded True if the destination responded with a status matching `success_status`.
	Succeeded bool `json:"succeeded"`
}

TestForwarderResponse Result of a test-forwarder execution.

type UpdateForwarderApplicationVndAPIPlusJSONRequestBody added in v3.0.14

type UpdateForwarderApplicationVndAPIPlusJSONRequestBody = ForwarderRequest

UpdateForwarderApplicationVndAPIPlusJSONRequestBody defines body for UpdateForwarder for application/vnd.api+json ContentType.

type UpdateForwarderResponse added in v3.0.14

type UpdateForwarderResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ForwarderResponse
}

func ParseUpdateForwarderResponse added in v3.0.14

func ParseUpdateForwarderResponse(rsp *http.Response) (*UpdateForwarderResponse, error)

ParseUpdateForwarderResponse parses an HTTP response from a UpdateForwarderWithResponse call

func (UpdateForwarderResponse) ContentType added in v3.0.14

func (r UpdateForwarderResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateForwarderResponse) Status added in v3.0.14

func (r UpdateForwarderResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateForwarderResponse) StatusCode added in v3.0.14

func (r UpdateForwarderResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UsageAttributes added in v3.0.23

type UsageAttributes struct {
	// LimitKey Identifier of the metered limit, e.g. `audit.events_per_month`.
	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 UsageResource

type UsageResource struct {
	// Attributes Usage counter for a single metered limit.
	Attributes UsageAttributes `json:"attributes"`
	Id         string          `json:"id"`
	Type       *string         `json:"type,omitempty"`
}

UsageResource defines model for UsageResource.

type UsageResponse

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

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

UsageResponse defines model for UsageResponse.

Jump to

Keyboard shortcuts

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