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.1 DO NOT EDIT.
Index ¶
- Constants
- func NewCreateExportRequestWithApplicationVndAPIPlusJSONBody(server string, body CreateExportApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)
- func NewCreateExportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateForwarderRequestWithApplicationVndAPIPlusJSONBody(server string, body CreateForwarderApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)
- func NewCreateForwarderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteForwarderRequest(server string, forwarderId string) (*http.Request, error)
- func NewDownloadExportRequest(server string, token string) (*http.Request, error)
- func NewExecuteTestForwarderRequest(server string, body ExecuteTestForwarderJSONRequestBody) (*http.Request, error)
- func NewExecuteTestForwarderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetEventRequest(server string, eventId openapi_types.UUID) (*http.Request, error)
- func NewGetForwarderRequest(server string, forwarderId string) (*http.Request, error)
- func NewGetForwarderTypeApiV1ForwarderTypesIdGetRequest(server string, id string) (*http.Request, error)
- func NewListCategoriesRequest(server string, params *ListCategoriesParams) (*http.Request, error)
- func NewListEventTypesRequest(server string, params *ListEventTypesParams) (*http.Request, error)
- func NewListEventsRequest(server string, params *ListEventsParams) (*http.Request, error)
- func NewListForwarderDeliveriesRequest(server string, forwarderId string, params *ListForwarderDeliveriesParams) (*http.Request, error)
- func NewListForwarderTypesApiV1ForwarderTypesGetRequest(server string) (*http.Request, error)
- func NewListForwardersRequest(server string, params *ListForwardersParams) (*http.Request, error)
- func NewListResourceTypesRequest(server string, params *ListResourceTypesParams) (*http.Request, error)
- func NewListUsageRequest(server string, params *ListUsageParams) (*http.Request, error)
- func NewRecordEventRequestWithApplicationVndAPIPlusJSONBody(server string, params *RecordEventParams, ...) (*http.Request, error)
- func NewRecordEventRequestWithBody(server string, params *RecordEventParams, contentType string, body io.Reader) (*http.Request, error)
- func NewRetryFailedForwarderDeliveriesRequest(server string, forwarderId string, ...) (*http.Request, error)
- func NewRetryFailedForwarderDeliveriesRequestWithBody(server string, forwarderId string, contentType string, body io.Reader) (*http.Request, error)
- func NewRetryForwarderDeliveryRequest(server string, forwarderId string, deliveryId openapi_types.UUID) (*http.Request, error)
- func NewSearchEventsRequest(server string, body SearchEventsJSONRequestBody) (*http.Request, error)
- func NewSearchEventsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateForwarderRequestWithApplicationVndAPIPlusJSONBody(server string, forwarderId string, ...) (*http.Request, error)
- func NewUpdateForwarderRequestWithBody(server string, forwarderId string, contentType string, body io.Reader) (*http.Request, error)
- type CategoryAttributes
- type CategoryListResponse
- type CategoryResource
- type Client
- func (c *Client) CreateExportWithApplicationVndAPIPlusJSONBody(ctx context.Context, body CreateExportApplicationVndAPIPlusJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateExportWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateForwarderWithApplicationVndAPIPlusJSONBody(ctx context.Context, body CreateForwarderApplicationVndAPIPlusJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateForwarderWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteForwarder(ctx context.Context, forwarderId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DownloadExport(ctx context.Context, token string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExecuteTestForwarder(ctx context.Context, body ExecuteTestForwarderJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ExecuteTestForwarderWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetEvent(ctx context.Context, eventId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetForwarder(ctx context.Context, forwarderId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetForwarderTypeApiV1ForwarderTypesIdGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListCategories(ctx context.Context, params *ListCategoriesParams, ...) (*http.Response, error)
- func (c *Client) ListEventTypes(ctx context.Context, params *ListEventTypesParams, ...) (*http.Response, error)
- func (c *Client) ListEvents(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListForwarderDeliveries(ctx context.Context, forwarderId string, params *ListForwarderDeliveriesParams, ...) (*http.Response, error)
- func (c *Client) ListForwarderTypesApiV1ForwarderTypesGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListForwarders(ctx context.Context, params *ListForwardersParams, ...) (*http.Response, error)
- func (c *Client) ListResourceTypes(ctx context.Context, params *ListResourceTypesParams, ...) (*http.Response, error)
- func (c *Client) ListUsage(ctx context.Context, params *ListUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RecordEventWithApplicationVndAPIPlusJSONBody(ctx context.Context, params *RecordEventParams, ...) (*http.Response, error)
- func (c *Client) RecordEventWithBody(ctx context.Context, params *RecordEventParams, contentType string, ...) (*http.Response, error)
- func (c *Client) RetryFailedForwarderDeliveries(ctx context.Context, forwarderId string, ...) (*http.Response, error)
- func (c *Client) RetryFailedForwarderDeliveriesWithBody(ctx context.Context, forwarderId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RetryForwarderDelivery(ctx context.Context, forwarderId string, deliveryId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) SearchEvents(ctx context.Context, body SearchEventsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SearchEventsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateForwarderWithApplicationVndAPIPlusJSONBody(ctx context.Context, forwarderId string, ...) (*http.Response, error)
- func (c *Client) UpdateForwarderWithBody(ctx context.Context, forwarderId string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateExportWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateExportApplicationVndAPIPlusJSONRequestBody, ...) (*CreateExportResponse, error)
- func (c *ClientWithResponses) CreateExportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateExportResponse, error)
- func (c *ClientWithResponses) CreateForwarderWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateForwarderApplicationVndAPIPlusJSONRequestBody, ...) (*CreateForwarderResponse, error)
- func (c *ClientWithResponses) CreateForwarderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateForwarderResponse, error)
- func (c *ClientWithResponses) DeleteForwarderWithResponse(ctx context.Context, forwarderId string, reqEditors ...RequestEditorFn) (*DeleteForwarderResponse, error)
- func (c *ClientWithResponses) DownloadExportWithResponse(ctx context.Context, token string, reqEditors ...RequestEditorFn) (*DownloadExportResponse, error)
- func (c *ClientWithResponses) ExecuteTestForwarderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ExecuteTestForwarderResponse, error)
- func (c *ClientWithResponses) ExecuteTestForwarderWithResponse(ctx context.Context, body ExecuteTestForwarderJSONRequestBody, ...) (*ExecuteTestForwarderResponse, error)
- func (c *ClientWithResponses) GetEventWithResponse(ctx context.Context, eventId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetEventResponse, error)
- func (c *ClientWithResponses) GetForwarderTypeApiV1ForwarderTypesIdGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetForwarderTypeApiV1ForwarderTypesIdGetResponse, error)
- func (c *ClientWithResponses) GetForwarderWithResponse(ctx context.Context, forwarderId string, reqEditors ...RequestEditorFn) (*GetForwarderResponse, error)
- func (c *ClientWithResponses) ListCategoriesWithResponse(ctx context.Context, params *ListCategoriesParams, ...) (*ListCategoriesResponse, error)
- func (c *ClientWithResponses) ListEventTypesWithResponse(ctx context.Context, params *ListEventTypesParams, ...) (*ListEventTypesResponse, error)
- func (c *ClientWithResponses) ListEventsWithResponse(ctx context.Context, params *ListEventsParams, reqEditors ...RequestEditorFn) (*ListEventsResponse, error)
- func (c *ClientWithResponses) ListForwarderDeliveriesWithResponse(ctx context.Context, forwarderId string, params *ListForwarderDeliveriesParams, ...) (*ListForwarderDeliveriesResponse, error)
- func (c *ClientWithResponses) ListForwarderTypesApiV1ForwarderTypesGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListForwarderTypesApiV1ForwarderTypesGetResponse, error)
- func (c *ClientWithResponses) ListForwardersWithResponse(ctx context.Context, params *ListForwardersParams, ...) (*ListForwardersResponse, error)
- func (c *ClientWithResponses) ListResourceTypesWithResponse(ctx context.Context, params *ListResourceTypesParams, ...) (*ListResourceTypesResponse, error)
- func (c *ClientWithResponses) ListUsageWithResponse(ctx context.Context, params *ListUsageParams, reqEditors ...RequestEditorFn) (*ListUsageResponse, error)
- func (c *ClientWithResponses) RecordEventWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, params *RecordEventParams, ...) (*RecordEventResponse, error)
- func (c *ClientWithResponses) RecordEventWithBodyWithResponse(ctx context.Context, params *RecordEventParams, contentType string, ...) (*RecordEventResponse, error)
- func (c *ClientWithResponses) RetryFailedForwarderDeliveriesWithBodyWithResponse(ctx context.Context, forwarderId string, contentType string, body io.Reader, ...) (*RetryFailedForwarderDeliveriesResponse, error)
- func (c *ClientWithResponses) RetryFailedForwarderDeliveriesWithResponse(ctx context.Context, forwarderId string, ...) (*RetryFailedForwarderDeliveriesResponse, error)
- func (c *ClientWithResponses) RetryForwarderDeliveryWithResponse(ctx context.Context, forwarderId string, deliveryId openapi_types.UUID, ...) (*RetryForwarderDeliveryResponse, error)
- func (c *ClientWithResponses) SearchEventsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SearchEventsResponse, error)
- func (c *ClientWithResponses) SearchEventsWithResponse(ctx context.Context, body SearchEventsJSONRequestBody, ...) (*SearchEventsResponse, error)
- func (c *ClientWithResponses) UpdateForwarderWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, forwarderId string, ...) (*UpdateForwarderResponse, error)
- func (c *ClientWithResponses) UpdateForwarderWithBodyWithResponse(ctx context.Context, forwarderId string, contentType string, body io.Reader, ...) (*UpdateForwarderResponse, error)
- type ClientWithResponsesInterface
- type CreateExportApplicationVndAPIPlusJSONRequestBody
- type CreateExportResponse
- type CreateForwarderApplicationVndAPIPlusJSONRequestBody
- type CreateForwarderResponse
- type DeleteForwarderResponse
- type DownloadExportResponse
- type Event
- type EventListLinks
- type EventListMeta
- type EventListResponse
- type EventRequest
- type EventResource
- type EventResponse
- type EventSearchListLinks
- type EventSearchListMeta
- type EventSearchRequest
- type EventSearchResponse
- type EventSearchScanMeta
- type EventTypeAttributes
- type EventTypeListResponse
- type EventTypeResource
- type ExecuteTestForwarderJSONRequestBody
- type ExecuteTestForwarderResponse
- type Export
- type ExportFormat
- type ExportRequest
- type ExportResource
- type ExportResponse
- type Forwarder
- type ForwarderCreateRequest
- type ForwarderCreateResource
- type ForwarderCreateResourceType
- type ForwarderDelivery
- type ForwarderDeliveryListLinks
- type ForwarderDeliveryListMeta
- type ForwarderDeliveryListResponse
- type ForwarderDeliveryResource
- type ForwarderDeliveryResponse
- type ForwarderDeliveryStatus
- type ForwarderEnvironment
- type ForwarderListResponse
- type ForwarderRequest
- type ForwarderResource
- type ForwarderResponse
- type ForwarderTransformType
- type ForwarderType
- type ForwarderTypeAttributes
- type ForwarderTypeHeader
- type ForwarderTypeHttpConfiguration
- type ForwarderTypeListResponse
- type ForwarderTypePlaceholder
- type ForwarderTypeResource
- type ForwarderTypeResponse
- type ForwarderTypeTransform
- type GetEventResponse
- type GetForwarderResponse
- type GetForwarderTypeApiV1ForwarderTypesIdGetResponse
- type HttpConfiguration
- type HttpConfigurationMethod
- type HttpHeader
- type HttpRequestDoer
- type ListCategoriesParams
- type ListCategoriesParamsSort
- type ListCategoriesResponse
- type ListEventTypesParams
- type ListEventTypesParamsSort
- type ListEventTypesResponse
- type ListEventsParams
- type ListEventsParamsFormat
- type ListEventsParamsSort
- type ListEventsResponse
- type ListForwarderDeliveriesParams
- type ListForwarderDeliveriesParamsSort
- type ListForwarderDeliveriesResponse
- type ListForwarderTypesApiV1ForwarderTypesGetResponse
- type ListForwardersParams
- type ListForwardersParamsSort
- type ListForwardersResponse
- type ListMeta
- type ListResourceTypesParams
- type ListResourceTypesParamsSort
- type ListResourceTypesResponse
- type ListUsageParams
- type ListUsageResponse
- type PaginationMeta
- type RecordEventApplicationVndAPIPlusJSONRequestBody
- type RecordEventParams
- type RecordEventResponse
- type RequestEditorFn
- type ResourceTypeAttributes
- type ResourceTypeListResponse
- type ResourceTypeResource
- type RetryFailedDeliveriesRequest
- type RetryFailedDeliveriesSummary
- type RetryFailedForwarderDeliveriesJSONRequestBody
- type RetryFailedForwarderDeliveriesResponse
- type RetryForwarderDeliveryResponse
- type SearchEventsJSONRequestBody
- type SearchEventsResponse
- type Severity
- type TestForwarderRequest
- type TestForwarderRequestMethod
- type TestForwarderResponse
- type UpdateForwarderApplicationVndAPIPlusJSONRequestBody
- type UpdateForwarderResponse
- type UsageAttributes
- type UsageResource
- type UsageResponse
Constants ¶
const (
HTTPBearerScopes hTTPBearerContextKey = "HTTPBearer.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewCreateExportRequestWithApplicationVndAPIPlusJSONBody ¶ added in v3.0.98
func NewCreateExportRequestWithApplicationVndAPIPlusJSONBody(server string, body CreateExportApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)
NewCreateExportRequestWithApplicationVndAPIPlusJSONBody calls the generic CreateExport builder with application/vnd.api+json body
func NewCreateExportRequestWithBody ¶ added in v3.0.98
func NewCreateExportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateExportRequestWithBody generates requests for CreateExport with any type of body
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
NewDeleteForwarderRequest generates requests for DeleteForwarder
func NewDownloadExportRequest ¶ added in v3.0.98
NewDownloadExportRequest generates requests for DownloadExport
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 ¶
NewGetEventRequest generates requests for GetEvent
func NewGetForwarderRequest ¶ added in v3.0.14
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 NewListCategoriesRequest ¶ added in v3.0.97
func NewListCategoriesRequest(server string, params *ListCategoriesParams) (*http.Request, error)
NewListCategoriesRequest generates requests for ListCategories
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 string, params *ListForwarderDeliveriesParams) (*http.Request, error)
NewListForwarderDeliveriesRequest generates requests for ListForwarderDeliveries
func NewListForwarderTypesApiV1ForwarderTypesGetRequest ¶ added in v3.0.64
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 string, body RetryFailedForwarderDeliveriesJSONRequestBody) (*http.Request, error)
NewRetryFailedForwarderDeliveriesRequest calls the generic RetryFailedForwarderDeliveries builder with application/json body
func NewRetryFailedForwarderDeliveriesRequestWithBody ¶ added in v3.0.131
func NewRetryFailedForwarderDeliveriesRequestWithBody(server string, forwarderId string, contentType string, body io.Reader) (*http.Request, error)
NewRetryFailedForwarderDeliveriesRequestWithBody generates requests for RetryFailedForwarderDeliveries with any type of body
func NewRetryForwarderDeliveryRequest ¶ added in v3.0.14
func NewRetryForwarderDeliveryRequest(server string, forwarderId string, 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 string, body UpdateForwarderApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)
NewUpdateForwarderRequestWithApplicationVndAPIPlusJSONBody calls the generic UpdateForwarder builder with application/vnd.api+json body
Types ¶
type CategoryAttributes ¶ added in v3.0.97
type CategoryAttributes struct {
// Category The category value. Same as the JSON:API “id“.
Category string `json:"category"`
// CreatedAt First sighting of this category for the account.
CreatedAt time.Time `json:"created_at"`
}
CategoryAttributes defines model for CategoryAttributes.
type CategoryListResponse ¶ added in v3.0.97
type CategoryListResponse struct {
Data []CategoryResource `json:"data"`
// Meta Top-level “meta“ block included on every JSON:API list response.
Meta ListMeta `json:"meta"`
}
CategoryListResponse defines model for CategoryListResponse.
type CategoryResource ¶ added in v3.0.97
type CategoryResource struct {
Attributes CategoryAttributes `json:"attributes"`
// Id The category value.
Id string `json:"id"`
Type *string `json:"type,omitempty"`
}
CategoryResource defines model for CategoryResource.
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) CreateExportWithApplicationVndAPIPlusJSONBody ¶ added in v3.0.98
func (c *Client) CreateExportWithApplicationVndAPIPlusJSONBody(ctx context.Context, body CreateExportApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateExportWithBody ¶ added in v3.0.98
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 (*Client) DeleteForwarder ¶ added in v3.0.14
func (*Client) DownloadExport ¶ added in v3.0.98
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 (*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 (*Client) GetForwarderTypeApiV1ForwarderTypesIdGet ¶ added in v3.0.64
func (*Client) ListCategories ¶ added in v3.0.97
func (c *Client) ListCategories(ctx context.Context, params *ListCategoriesParams, 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 string, params *ListForwarderDeliveriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListForwarderTypesApiV1ForwarderTypesGet ¶ added in v3.0.64
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 (*Client) RetryFailedForwarderDeliveries ¶ added in v3.0.14
func (c *Client) RetryFailedForwarderDeliveries(ctx context.Context, forwarderId string, body RetryFailedForwarderDeliveriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RetryFailedForwarderDeliveriesWithBody ¶ added in v3.0.131
func (*Client) RetryForwarderDelivery ¶ added in v3.0.14
func (c *Client) RetryForwarderDelivery(ctx context.Context, forwarderId string, 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 (*Client) UpdateForwarderWithApplicationVndAPIPlusJSONBody ¶ added in v3.0.14
func (c *Client) UpdateForwarderWithApplicationVndAPIPlusJSONBody(ctx context.Context, forwarderId string, body UpdateForwarderApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// ListCategories request
ListCategories(ctx context.Context, params *ListCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// 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)
// 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)
// GetEvent request
GetEvent(ctx context.Context, eventId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateExportWithBody request with any body
CreateExportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateExportWithApplicationVndAPIPlusJSONBody(ctx context.Context, body CreateExportApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DownloadExport request
DownloadExport(ctx context.Context, token string, 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 string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetForwarder request
GetForwarder(ctx context.Context, forwarderId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateForwarderWithBody request with any body
UpdateForwarderWithBody(ctx context.Context, forwarderId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateForwarderWithApplicationVndAPIPlusJSONBody(ctx context.Context, forwarderId string, body UpdateForwarderApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RetryFailedForwarderDeliveriesWithBody request with any body
RetryFailedForwarderDeliveriesWithBody(ctx context.Context, forwarderId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RetryFailedForwarderDeliveries(ctx context.Context, forwarderId string, body RetryFailedForwarderDeliveriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListForwarderDeliveries request
ListForwarderDeliveries(ctx context.Context, forwarderId string, params *ListForwarderDeliveriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RetryForwarderDelivery request
RetryForwarderDelivery(ctx context.Context, forwarderId string, 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)
// ListUsage request
ListUsage(ctx context.Context, params *ListUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CreateExportWithApplicationVndAPIPlusJSONBodyWithResponse ¶ added in v3.0.98
func (c *ClientWithResponses) CreateExportWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateExportApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateExportResponse, error)
func (*ClientWithResponses) CreateExportWithBodyWithResponse ¶ added in v3.0.98
func (c *ClientWithResponses) CreateExportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateExportResponse, error)
CreateExportWithBodyWithResponse request with arbitrary body returning *CreateExportResponse
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 string, reqEditors ...RequestEditorFn) (*DeleteForwarderResponse, error)
DeleteForwarderWithResponse request returning *DeleteForwarderResponse
func (*ClientWithResponses) DownloadExportWithResponse ¶ added in v3.0.98
func (c *ClientWithResponses) DownloadExportWithResponse(ctx context.Context, token string, reqEditors ...RequestEditorFn) (*DownloadExportResponse, error)
DownloadExportWithResponse request returning *DownloadExportResponse
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 string, reqEditors ...RequestEditorFn) (*GetForwarderResponse, error)
GetForwarderWithResponse request returning *GetForwarderResponse
func (*ClientWithResponses) ListCategoriesWithResponse ¶ added in v3.0.97
func (c *ClientWithResponses) ListCategoriesWithResponse(ctx context.Context, params *ListCategoriesParams, reqEditors ...RequestEditorFn) (*ListCategoriesResponse, error)
ListCategoriesWithResponse request returning *ListCategoriesResponse
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 string, 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) RetryFailedForwarderDeliveriesWithBodyWithResponse ¶ added in v3.0.131
func (c *ClientWithResponses) RetryFailedForwarderDeliveriesWithBodyWithResponse(ctx context.Context, forwarderId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetryFailedForwarderDeliveriesResponse, error)
RetryFailedForwarderDeliveriesWithBodyWithResponse request with arbitrary body returning *RetryFailedForwarderDeliveriesResponse
func (*ClientWithResponses) RetryFailedForwarderDeliveriesWithResponse ¶ added in v3.0.14
func (c *ClientWithResponses) RetryFailedForwarderDeliveriesWithResponse(ctx context.Context, forwarderId string, body RetryFailedForwarderDeliveriesJSONRequestBody, reqEditors ...RequestEditorFn) (*RetryFailedForwarderDeliveriesResponse, error)
func (*ClientWithResponses) RetryForwarderDeliveryWithResponse ¶ added in v3.0.14
func (c *ClientWithResponses) RetryForwarderDeliveryWithResponse(ctx context.Context, forwarderId string, 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 string, body UpdateForwarderApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateForwarderResponse, error)
func (*ClientWithResponses) UpdateForwarderWithBodyWithResponse ¶ added in v3.0.14
func (c *ClientWithResponses) UpdateForwarderWithBodyWithResponse(ctx context.Context, forwarderId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateForwarderResponse, error)
UpdateForwarderWithBodyWithResponse request with arbitrary body returning *UpdateForwarderResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListCategoriesWithResponse request
ListCategoriesWithResponse(ctx context.Context, params *ListCategoriesParams, reqEditors ...RequestEditorFn) (*ListCategoriesResponse, error)
// 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)
// 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)
// GetEventWithResponse request
GetEventWithResponse(ctx context.Context, eventId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetEventResponse, error)
// CreateExportWithBodyWithResponse request with any body
CreateExportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateExportResponse, error)
CreateExportWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateExportApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateExportResponse, error)
// DownloadExportWithResponse request
DownloadExportWithResponse(ctx context.Context, token string, reqEditors ...RequestEditorFn) (*DownloadExportResponse, 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 string, reqEditors ...RequestEditorFn) (*DeleteForwarderResponse, error)
// GetForwarderWithResponse request
GetForwarderWithResponse(ctx context.Context, forwarderId string, reqEditors ...RequestEditorFn) (*GetForwarderResponse, error)
// UpdateForwarderWithBodyWithResponse request with any body
UpdateForwarderWithBodyWithResponse(ctx context.Context, forwarderId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateForwarderResponse, error)
UpdateForwarderWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, forwarderId string, body UpdateForwarderApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateForwarderResponse, error)
// RetryFailedForwarderDeliveriesWithBodyWithResponse request with any body
RetryFailedForwarderDeliveriesWithBodyWithResponse(ctx context.Context, forwarderId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetryFailedForwarderDeliveriesResponse, error)
RetryFailedForwarderDeliveriesWithResponse(ctx context.Context, forwarderId string, body RetryFailedForwarderDeliveriesJSONRequestBody, reqEditors ...RequestEditorFn) (*RetryFailedForwarderDeliveriesResponse, error)
// ListForwarderDeliveriesWithResponse request
ListForwarderDeliveriesWithResponse(ctx context.Context, forwarderId string, params *ListForwarderDeliveriesParams, reqEditors ...RequestEditorFn) (*ListForwarderDeliveriesResponse, error)
// RetryForwarderDeliveryWithResponse request
RetryForwarderDeliveryWithResponse(ctx context.Context, forwarderId string, 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)
// ListUsageWithResponse request
ListUsageWithResponse(ctx context.Context, params *ListUsageParams, reqEditors ...RequestEditorFn) (*ListUsageResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateExportApplicationVndAPIPlusJSONRequestBody ¶ added in v3.0.98
type CreateExportApplicationVndAPIPlusJSONRequestBody = ExportRequest
CreateExportApplicationVndAPIPlusJSONRequestBody defines body for CreateExport for application/vnd.api+json ContentType.
type CreateExportResponse ¶ added in v3.0.98
type CreateExportResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationvndApiJSON201 *ExportResponse
}
func ParseCreateExportResponse ¶ added in v3.0.98
func ParseCreateExportResponse(rsp *http.Response) (*CreateExportResponse, error)
ParseCreateExportResponse parses an HTTP response from a CreateExportWithResponse call
func (CreateExportResponse) ContentType ¶ added in v3.0.98
func (r CreateExportResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateExportResponse) Status ¶ added in v3.0.98
func (r CreateExportResponse) Status() string
Status returns HTTPResponse.Status
func (CreateExportResponse) StatusCode ¶ added in v3.0.98
func (r CreateExportResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateForwarderApplicationVndAPIPlusJSONRequestBody ¶ added in v3.0.14
type CreateForwarderApplicationVndAPIPlusJSONRequestBody = ForwarderCreateRequest
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
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 DownloadExportResponse ¶ added in v3.0.98
func ParseDownloadExportResponse ¶ added in v3.0.98
func ParseDownloadExportResponse(rsp *http.Response) (*DownloadExportResponse, error)
ParseDownloadExportResponse parses an HTTP response from a DownloadExportWithResponse call
func (DownloadExportResponse) ContentType ¶ added in v3.0.98
func (r DownloadExportResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DownloadExportResponse) Status ¶ added in v3.0.98
func (r DownloadExportResponse) Status() string
Status returns HTTPResponse.Status
func (DownloadExportResponse) StatusCode ¶ added in v3.0.98
func (r DownloadExportResponse) 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"`
// Category Free-form bucket label, e.g. `auth`, `billing`, `config-change`. Stored exactly as supplied. Drives the `filter[category]` filter and the `GET /api/v1/categories` discovery endpoint.
Category *string `json:"category,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, and no delivery log entries are created for it.
DoNotForward *bool `json:"do_not_forward,omitempty"`
// Environment The environment the event occurred in. On write, optionally names the target environment: omit it and a single-environment credential implies it (a multi-environment credential must name it), and a named environment must be one the caller may access. Always present on read as the resolved environment. The same content recorded in two environments produces two distinct events.
Environment *string `json:"environment,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"`
// Severity One of `TRACE`, `DEBUG`, `INFO`, `WARN`, `ERROR`, `FATAL`.
Severity *Severity `json:"severity,omitempty"`
}
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 ¶
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 ¶ added in v3.0.60
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"`
// FilterCategory Exact match on the event's `category` field.
FilterCategory *string `json:"filter[category],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"`
// FilterEnvironment Comma-separated list of environment keys to scope results to (e.g. `production,staging`). When omitted, results cover every environment you can access. The reserved value `smplkit` selects platform change events smplkit records about your own resources; it is included by default when your plan grants change history, and requesting it explicitly without that entitlement returns 402.
FilterEnvironment *string `json:"filter[environment],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"`
// FilterSeverity Exact match on the event's `severity` field. One of `TRACE`, `DEBUG`, `INFO`, `WARN`, `ERROR`, `FATAL`.
FilterSeverity *string `json:"filter[severity],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/events/search“.
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
func (r ExecuteTestForwarderResponse) Status() string
Status returns HTTPResponse.Status
func (ExecuteTestForwarderResponse) StatusCode ¶ added in v3.0.14
func (r ExecuteTestForwarderResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Export ¶ added in v3.0.98
type Export struct {
// Environment The single environment the export is scoped to. Omit it and a single-environment credential implies it (a multi-environment credential must name it), and a named environment must be one the caller may access. An export always covers exactly one environment.
Environment *string `json:"environment,omitempty"`
// ExpiresAt When the signed URL stops being valid (ISO-8601 UTC). Open the URL well before this time — the signed token is stateless, so a single mint cannot be 'refreshed'; mint a new export if the URL has expired.
ExpiresAt *time.Time `json:"expires_at,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.
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)`.
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 against `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"`
// Format Output format for the download. `CSV` writes one row per event with the event payload (`data`) serialized as a JSON-encoded cell. `JSONL` writes one JSON object per line with `data` preserved as a nested object.
Format ExportFormat `json:"format"`
// Url Absolute, signed download URL. Open in a browser to stream the export to disk. Expires shortly after mint — see `expires_at`.
Url *string `json:"url,omitempty"`
}
Export A request for a short-lived signed download URL.
The customer chooses a `format` and supplies the same filter set the events list endpoint accepts. The server mints an HMAC-signed URL (valid for 30 seconds) that the browser navigates to for a native streaming download — no `Authorization` header required at download time.
The download honors the **same filter-combination rules** as `GET /api/v1/events`:
- `filter[resource_id]` must be accompanied by `filter[resource_type]`.
- `filter[search]` must be accompanied by either `filter[occurred_at]` or `filter[resource_type]` + `filter[resource_id]`.
A request that violates these rules is rejected at mint time with `400 Bad Request`.
type ExportFormat ¶ added in v3.0.98
type ExportFormat string
ExportFormat Output format for the download. `CSV` writes one row per event with the event payload (`data`) serialized as a JSON-encoded cell. `JSONL` writes one JSON object per line with `data` preserved as a nested object.
const ( ExportFormatCSV ExportFormat = "CSV" ExportFormatJSONL ExportFormat = "JSONL" )
Defines values for ExportFormat.
func (ExportFormat) Valid ¶ added in v3.0.98
func (e ExportFormat) Valid() bool
Valid indicates whether the value is a known member of the ExportFormat enum.
type ExportRequest ¶ added in v3.0.98
type ExportRequest struct {
// Data JSON:API resource envelope for an export ticket.
//
// `id` must not be specified on create requests — the server assigns
// a fresh UUID per mint response. The UUID identifies this particular
// response envelope only; nothing is persisted behind it (the signed
// token inside `attributes.url` is the actual artifact).
Data ExportResource `json:"data"`
}
ExportRequest JSON:API request envelope for minting a signed download URL.
type ExportResource ¶ added in v3.0.98
type ExportResource struct {
// Attributes A request for a short-lived signed download URL.
//
// The customer chooses a `format` and supplies the same filter set
// the events list endpoint accepts. The server mints an HMAC-signed
// URL (valid for 30 seconds) that the browser navigates to for a
// native streaming download — no `Authorization` header required at
// download time.
//
// The download honors the **same filter-combination rules** as
// `GET /api/v1/events`:
//
// - `filter[resource_id]` must be accompanied by `filter[resource_type]`.
// - `filter[search]` must be accompanied by either `filter[occurred_at]`
// or `filter[resource_type]` + `filter[resource_id]`.
//
// A request that violates these rules is rejected at mint time with
// `400 Bad Request`.
Attributes Export `json:"attributes"`
Id *string `json:"id,omitempty"`
Type *string `json:"type,omitempty"`
}
ExportResource JSON:API resource envelope for an export ticket.
`id` must not be specified on create requests — the server assigns a fresh UUID per mint response. The UUID identifies this particular response envelope only; nothing is persisted behind it (the signed token inside `attributes.url` is the actual artifact).
type ExportResponse ¶ added in v3.0.98
type ExportResponse struct {
// Data JSON:API resource envelope for an export ticket.
//
// `id` must not be specified on create requests — the server assigns
// a fresh UUID per mint response. The UUID identifies this particular
// response envelope only; nothing is persisted behind it (the signed
// token inside `attributes.url` is the actual artifact).
Data ExportResource `json:"data"`
}
ExportResponse JSON:API single-resource response carrying the signed URL.
type Forwarder ¶ added in v3.0.14
type Forwarder struct {
// Configuration HTTP request configuration for delivering a payload to a destination.
//
// The shared base shape for any product that posts to a customer-supplied
// HTTP destination. Smpl Audit forwarders use it directly; Smpl Jobs
// extends it (adding “body“ and “timeout“). When other transports land
// (“FTP“, “SQS“, …) their own configuration schemas will join this one
// as members of a discriminated union under a “configuration“ field.
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 Always false. Enablement is per-environment: a forwarder delivers in an environment only when `environments[<env>].enabled` is true. The base value is pinned false and cannot be set.
Enabled *bool `json:"enabled,omitempty"`
// Environments Per-environment overrides keyed by environment key (e.g. `production`, `staging`). Each entry sets `enabled` (whether the forwarder delivers in that environment) and an optional `configuration` override (omit to inherit the base `configuration`). A forwarder with no entry for an environment is disabled there. Every referenced environment must exist and be managed for the account.
Environments *map[string]ForwarderEnvironment `json:"environments,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"`
// ForwardSmplkitEvents When true, this forwarder also receives platform change events that smplkit records about your own resources (flag, configuration, and similar changes). Each such event is delivered through every environment this forwarder is enabled in, using that environment's resolved configuration. Defaults to false — platform change events are not forwarded unless you opt in. Independent of the per-environment `enabled` settings, since platform change events are not tied to a deployment environment.
ForwardSmplkitEvents *bool `json:"forward_smplkit_events,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 ForwarderCreateRequest ¶ added in v3.0.85
type ForwarderCreateRequest struct {
// Data JSON:API resource envelope for creating a forwarder (id required).
Data ForwarderCreateResource `json:"data"`
}
ForwarderCreateRequest JSON:API request envelope for creating a forwarder.
Distinct from :class:`ForwarderRequest` because create requires caller-supplied “data.id“ while update does not.
type ForwarderCreateResource ¶ added in v3.0.85
type ForwarderCreateResource 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 Client-supplied resource id.
Id string `json:"id"`
Type *ForwarderCreateResourceType `json:"type,omitempty"`
}
ForwarderCreateResource JSON:API resource envelope for creating a forwarder (id required).
type ForwarderCreateResourceType ¶ added in v3.0.85
type ForwarderCreateResourceType string
ForwarderCreateResourceType defines model for ForwarderCreateResource.Type.
const (
ForwarderCreateResourceTypeForwarder ForwarderCreateResourceType = "forwarder"
)
Defines values for ForwarderCreateResourceType.
func (ForwarderCreateResourceType) Valid ¶ added in v3.0.85
func (e ForwarderCreateResourceType) Valid() bool
Valid indicates whether the value is a known member of the ForwarderCreateResourceType enum.
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"`
// Environment Environment the delivered event occurred in. Deliveries are scoped to one environment.
Environment string `json:"environment"`
// Error Error message if the delivery did not complete.
Error *string `json:"error,omitempty"`
// Event Event that was being delivered.
Event openapi_types.UUID `json:"event"`
// Forwarder Forwarder the delivery belongs to.
Forwarder openapi_types.UUID `json:"forwarder"`
// 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` when the destination accepted the event, `FAILED` when the delivery attempt did not succeed. Events that a forwarder's filter rejected are not recorded as deliveries.
Status ForwarderDeliveryStatus `json:"status"`
}
ForwarderDelivery A log entry for one attempt to deliver an event to a forwarder.
type ForwarderDeliveryListLinks ¶ added in v3.0.47
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` when the destination accepted the event, `FAILED` when the delivery attempt did not succeed. Events that a forwarder's filter rejected are not recorded as deliveries.
const ( FAILED ForwarderDeliveryStatus = "FAILED" 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 ForwarderEnvironment ¶ added in v3.0.120
type ForwarderEnvironment struct {
// Configuration HTTP request configuration for delivering a payload to a destination.
//
// The shared base shape for any product that posts to a customer-supplied
// HTTP destination. Smpl Audit forwarders use it directly; Smpl Jobs
// extends it (adding “body“ and “timeout“). When other transports land
// (“FTP“, “SQS“, …) their own configuration schemas will join this one
// as members of a discriminated union under a “configuration“ field.
Configuration *HttpConfiguration `json:"configuration,omitempty"`
// Enabled Whether the forwarder delivers events in this environment. A forwarder is enabled in an environment only via this field — the base `enabled` is always false.
Enabled *bool `json:"enabled,omitempty"`
}
ForwarderEnvironment Per-environment override for a forwarder's enablement and configuration.
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.
//
// The caller supplies `id` (the forwarder's key) on create.
Data ForwarderResource `json:"data"`
}
ForwarderRequest JSON:API request envelope for 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.
The caller supplies `id` (the forwarder's key) on create.
type ForwarderResponse ¶ added in v3.0.14
type ForwarderResponse struct {
// Data JSON:API resource envelope for a forwarder.
//
// The caller supplies `id` (the forwarder's key) on create.
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
func (r GetForwarderTypeApiV1ForwarderTypesIdGetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetForwarderTypeApiV1ForwarderTypesIdGetResponse) Status ¶ added in v3.0.64
func (r GetForwarderTypeApiV1ForwarderTypesIdGetResponse) Status() string
Status returns HTTPResponse.Status
func (GetForwarderTypeApiV1ForwarderTypesIdGetResponse) StatusCode ¶ added in v3.0.64
func (r GetForwarderTypeApiV1ForwarderTypesIdGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpConfiguration ¶ added in v3.0.51
type HttpConfiguration struct {
// CaCert Optional PEM-encoded certificate (or bundle) used to verify the destination server's TLS certificate, in addition to the system trust store. Use this to pin a private or self-signed CA (e.g. Splunk's default `SplunkCommonCA`) without disabling verification entirely via `tls_verify`. Must contain one or more `-----BEGIN CERTIFICATE-----` blocks. Ignored when `tls_verify` is `false`.
CaCert *string `json:"ca_cert,omitempty"`
// Headers HTTP headers attached to each request.
Headers *[]HttpHeader `json:"headers,omitempty"`
// Method HTTP method used when delivering the request.
Method *HttpConfigurationMethod `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"`
// TlsVerify Whether to verify the destination server's TLS certificate against trusted certificate authorities. Defaults to `true` and should be left on for any production destination. Set to `false` only for development or short-lived testing against a destination that presents an untrusted certificate (e.g. a Splunk Cloud trial stack on `:8088` serving its default self-signed certificate). When `false`, deliveries proceed without certificate verification — they are vulnerable to man-in-the-middle attacks. For long-lived self-signed setups, pin the issuing CA via `ca_cert` instead of disabling verification entirely.
TlsVerify *bool `json:"tls_verify,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 for delivering a payload to a destination.
The shared base shape for any product that posts to a customer-supplied HTTP destination. Smpl Audit forwarders use it directly; Smpl Jobs extends it (adding “body“ and “timeout“). When other transports land (“FTP“, “SQS“, …) their own configuration schemas will join this one as members of a discriminated union under a “configuration“ field.
type HttpConfigurationMethod ¶ added in v3.0.51
type HttpConfigurationMethod string
HttpConfigurationMethod HTTP method used when delivering the request.
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 an outbound 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 ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ListCategoriesParams ¶ added in v3.0.97
type ListCategoriesParams struct {
// FilterEnvironment Comma-separated list of environment keys to scope results to (e.g. `production,staging`). When omitted, results cover every environment you can access. The reserved value `smplkit` selects platform change events smplkit records about your own resources; it is included by default when your plan grants change history, and requesting it explicitly without that entitlement returns 402.
FilterEnvironment *string `form:"filter[environment],omitempty" json:"filter[environment],omitempty"`
// Sort Field to sort by. Prefix with `-` for descending order. Default: `key`. Allowed values: `key`, `-key`.
Sort *ListCategoriesParamsSort `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"`
}
ListCategoriesParams defines parameters for ListCategories.
type ListCategoriesParamsSort ¶ added in v3.0.97
type ListCategoriesParamsSort string
ListCategoriesParamsSort defines parameters for ListCategories.
const ( ListCategoriesParamsSortKey ListCategoriesParamsSort = "key" ListCategoriesParamsSortMinusKey ListCategoriesParamsSort = "-key" )
Defines values for ListCategoriesParamsSort.
func (ListCategoriesParamsSort) Valid ¶ added in v3.0.97
func (e ListCategoriesParamsSort) Valid() bool
Valid indicates whether the value is a known member of the ListCategoriesParamsSort enum.
type ListCategoriesResponse ¶ added in v3.0.97
type ListCategoriesResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationvndApiJSON200 *CategoryListResponse
}
func ParseListCategoriesResponse ¶ added in v3.0.97
func ParseListCategoriesResponse(rsp *http.Response) (*ListCategoriesResponse, error)
ParseListCategoriesResponse parses an HTTP response from a ListCategoriesWithResponse call
func (ListCategoriesResponse) ContentType ¶ added in v3.0.97
func (r ListCategoriesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListCategoriesResponse) Status ¶ added in v3.0.97
func (r ListCategoriesResponse) Status() string
Status returns HTTPResponse.Status
func (ListCategoriesResponse) StatusCode ¶ added in v3.0.97
func (r ListCategoriesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEventTypesParams ¶ added in v3.0.69
type ListEventTypesParams struct {
// FilterEnvironment Comma-separated list of environment keys to scope results to (e.g. `production,staging`). When omitted, results cover every environment you can access. The reserved value `smplkit` selects platform change events smplkit records about your own resources; it is included by default when your plan grants change history, and requesting it explicitly without that entitlement returns 402.
FilterEnvironment *string `form:"filter[environment],omitempty" json:"filter[environment],omitempty"`
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 {
// FilterEnvironment Comma-separated list of environment keys to scope results to (e.g. `production,staging`). When omitted, results cover every environment you can access. The reserved value `smplkit` selects platform change events smplkit records about your own resources; it is included by default when your plan grants change history, and requesting it explicitly without that entitlement returns 402.
FilterEnvironment *string `form:"filter[environment],omitempty" json:"filter[environment],omitempty"`
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"`
// FilterSeverity Exact match on the event's `severity` field. One of `TRACE`, `DEBUG`, `INFO`, `WARN`, `ERROR`, `FATAL`.
FilterSeverity *string `form:"filter[severity],omitempty" json:"filter[severity],omitempty"`
// FilterCategory Exact match on the event's `category` field.
FilterCategory *string `form:"filter[category],omitempty" json:"filter[category],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"`
// Format When set, stream a download of the full filtered result set in the chosen format instead of returning a paginated JSON:API response. `page[size]` and `page[after]` are ignored in this mode; every event matching the supplied filters is emitted. `CSV` writes one row per event with the event payload (`data`) serialized as a single JSON-encoded cell. `JSONL` writes one JSON object per line with the event payload nested as a JSON object. Omit this parameter to receive the paginated JSON:API response.
Format *ListEventsParamsFormat `form:"format,omitempty" json:"format,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 ListEventsParamsFormat ¶ added in v3.0.95
type ListEventsParamsFormat string
ListEventsParamsFormat defines parameters for ListEvents.
const ( ListEventsParamsFormatCSV ListEventsParamsFormat = "CSV" ListEventsParamsFormatJSONL ListEventsParamsFormat = "JSONL" )
Defines values for ListEventsParamsFormat.
func (ListEventsParamsFormat) Valid ¶ added in v3.0.95
func (e ListEventsParamsFormat) Valid() bool
Valid indicates whether the value is a known member of the ListEventsParamsFormat enum.
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 {
// FilterEnvironment Comma-separated list of environment keys to scope deliveries to (e.g. `production,staging`). When omitted, results cover every environment you can access. The reserved value `smplkit` selects deliveries of platform change events smplkit records about your own resources; it is included by default when your plan grants change history, and requesting it explicitly without that entitlement returns 402.
FilterEnvironment *string `form:"filter[environment],omitempty" json:"filter[environment],omitempty"`
FilterStatus *string `form:"filter[status],omitempty" json:"filter[status],omitempty"`
FilterCreatedAt *string `form:"filter[created_at],omitempty" json:"filter[created_at],omitempty"`
FilterEvent *string `form:"filter[event],omitempty" json:"filter[event],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
func (e ListForwarderDeliveriesParamsSort) Valid() bool
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
func (r ListForwarderDeliveriesResponse) Status() string
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
func (r ListForwarderTypesApiV1ForwarderTypesGetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListForwarderTypesApiV1ForwarderTypesGetResponse) Status ¶ added in v3.0.64
func (r ListForwarderTypesApiV1ForwarderTypesGetResponse) Status() string
Status returns HTTPResponse.Status
func (ListForwarderTypesApiV1ForwarderTypesGetResponse) StatusCode ¶ added in v3.0.64
func (r ListForwarderTypesApiV1ForwarderTypesGetResponse) StatusCode() int
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"`
// 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 {
// FilterEnvironment Comma-separated list of environment keys to scope results to (e.g. `production,staging`). When omitted, results cover every environment you can access. The reserved value `smplkit` selects platform change events smplkit records about your own resources; it is included by default when your plan grants change history, and requesting it explicitly without that entitlement returns 402.
FilterEnvironment *string `form:"filter[environment],omitempty" json:"filter[environment],omitempty"`
// 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 ( Key ListResourceTypesParamsSort = "key" MinusKey ListResourceTypesParamsSort = "-key" )
Defines values for ListResourceTypesParamsSort.
func (ListResourceTypesParamsSort) Valid ¶ added in v3.0.39
func (e ListResourceTypesParamsSort) Valid() bool
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 ¶
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 RetryFailedDeliveriesRequest ¶ added in v3.0.131
type RetryFailedDeliveriesRequest struct {
// Environment The single environment whose failed deliveries are re-attempted. Omit it and a single-environment credential implies it (a multi-environment credential must name it), and a named environment must be one the caller may access. The action always targets exactly one environment.
Environment *string `json:"environment,omitempty"`
}
RetryFailedDeliveriesRequest Inputs to the retry-failed-deliveries action.
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 RetryFailedForwarderDeliveriesJSONRequestBody ¶ added in v3.0.131
type RetryFailedForwarderDeliveriesJSONRequestBody = RetryFailedDeliveriesRequest
RetryFailedForwarderDeliveriesJSONRequestBody defines body for RetryFailedForwarderDeliveries for application/json ContentType.
type RetryFailedForwarderDeliveriesResponse ¶ added in v3.0.14
type RetryFailedForwarderDeliveriesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *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
func (r RetryFailedForwarderDeliveriesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RetryFailedForwarderDeliveriesResponse) Status ¶ added in v3.0.14
func (r RetryFailedForwarderDeliveriesResponse) Status() string
Status returns HTTPResponse.Status
func (RetryFailedForwarderDeliveriesResponse) StatusCode ¶ added in v3.0.14
func (r RetryFailedForwarderDeliveriesResponse) StatusCode() int
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
func (r RetryForwarderDeliveryResponse) Status() string
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 Severity ¶ added in v3.0.97
type Severity string
Severity One of `TRACE`, `DEBUG`, `INFO`, `WARN`, `ERROR`, `FATAL`.
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"`
// CaCert Optional PEM-encoded certificate (or bundle) used to verify the destination server's TLS certificate. Mirrors the parent forwarder field. Must contain one or more `-----BEGIN CERTIFICATE-----` blocks.
CaCert *string `json:"ca_cert,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"`
// TlsVerify Whether to verify the destination server's TLS certificate. Mirrors the parent forwarder field of the same name — see its description for security guidance. Defaults to `true`.
TlsVerify *bool `json:"tls_verify,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.