detects

package
v0.2.24 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for detects API

func (*Client) GetAggregateDetects

func (a *Client) GetAggregateDetects(params *GetAggregateDetectsParams, opts ...ClientOption) (*GetAggregateDetectsOK, error)

GetAggregateDetects gets detect aggregates as specified via json in request body

func (*Client) GetDetectSummaries

func (a *Client) GetDetectSummaries(params *GetDetectSummariesParams, opts ...ClientOption) (*GetDetectSummariesOK, error)

GetDetectSummaries views information about detections

func (*Client) QueryDetects

func (a *Client) QueryDetects(params *QueryDetectsParams, opts ...ClientOption) (*QueryDetectsOK, error)

QueryDetects searches for detection i ds that match a given query

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateDetectsByIdsV2

func (a *Client) UpdateDetectsByIdsV2(params *UpdateDetectsByIdsV2Params, opts ...ClientOption) (*UpdateDetectsByIdsV2OK, error)

UpdateDetectsByIdsV2 modifies the state assignee and visibility of detections

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetAggregateDetects(params *GetAggregateDetectsParams, opts ...ClientOption) (*GetAggregateDetectsOK, error)

	GetDetectSummaries(params *GetDetectSummariesParams, opts ...ClientOption) (*GetDetectSummariesOK, error)

	QueryDetects(params *QueryDetectsParams, opts ...ClientOption) (*QueryDetectsOK, error)

	UpdateDetectsByIdsV2(params *UpdateDetectsByIdsV2Params, opts ...ClientOption) (*UpdateDetectsByIdsV2OK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new detects API client.

type GetAggregateDetectsBadRequest

type GetAggregateDetectsBadRequest struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaAggregatesResponse
}
GetAggregateDetectsBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetAggregateDetectsBadRequest

func NewGetAggregateDetectsBadRequest() *GetAggregateDetectsBadRequest

NewGetAggregateDetectsBadRequest creates a GetAggregateDetectsBadRequest with default headers values

func (*GetAggregateDetectsBadRequest) Error

func (*GetAggregateDetectsBadRequest) GetPayload

type GetAggregateDetectsDefault

type GetAggregateDetectsDefault struct {
	Payload *models.MsaAggregatesResponse
	// contains filtered or unexported fields
}
GetAggregateDetectsDefault describes a response with status code -1, with default header values.

OK

func NewGetAggregateDetectsDefault

func NewGetAggregateDetectsDefault(code int) *GetAggregateDetectsDefault

NewGetAggregateDetectsDefault creates a GetAggregateDetectsDefault with default headers values

func (*GetAggregateDetectsDefault) Code

func (o *GetAggregateDetectsDefault) Code() int

Code gets the status code for the get aggregate detects default response

func (*GetAggregateDetectsDefault) Error

func (*GetAggregateDetectsDefault) GetPayload

type GetAggregateDetectsForbidden

type GetAggregateDetectsForbidden struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
GetAggregateDetectsForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetAggregateDetectsForbidden

func NewGetAggregateDetectsForbidden() *GetAggregateDetectsForbidden

NewGetAggregateDetectsForbidden creates a GetAggregateDetectsForbidden with default headers values

func (*GetAggregateDetectsForbidden) Error

func (*GetAggregateDetectsForbidden) GetPayload

type GetAggregateDetectsInternalServerError

type GetAggregateDetectsInternalServerError struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaAggregatesResponse
}
GetAggregateDetectsInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetAggregateDetectsInternalServerError

func NewGetAggregateDetectsInternalServerError() *GetAggregateDetectsInternalServerError

NewGetAggregateDetectsInternalServerError creates a GetAggregateDetectsInternalServerError with default headers values

func (*GetAggregateDetectsInternalServerError) Error

func (*GetAggregateDetectsInternalServerError) GetPayload

type GetAggregateDetectsOK

type GetAggregateDetectsOK struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaAggregatesResponse
}
GetAggregateDetectsOK describes a response with status code 200, with default header values.

OK

func NewGetAggregateDetectsOK

func NewGetAggregateDetectsOK() *GetAggregateDetectsOK

NewGetAggregateDetectsOK creates a GetAggregateDetectsOK with default headers values

func (*GetAggregateDetectsOK) Error

func (o *GetAggregateDetectsOK) Error() string

func (*GetAggregateDetectsOK) GetPayload

type GetAggregateDetectsParams

type GetAggregateDetectsParams struct {

	/* Body.

	   Query criteria and settings
	*/
	Body []*models.MsaAggregateQueryRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetAggregateDetectsParams contains all the parameters to send to the API endpoint

for the get aggregate detects operation.

Typically these are written to a http.Request.

func NewGetAggregateDetectsParams

func NewGetAggregateDetectsParams() *GetAggregateDetectsParams

NewGetAggregateDetectsParams creates a new GetAggregateDetectsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetAggregateDetectsParamsWithContext

func NewGetAggregateDetectsParamsWithContext(ctx context.Context) *GetAggregateDetectsParams

NewGetAggregateDetectsParamsWithContext creates a new GetAggregateDetectsParams object with the ability to set a context for a request.

func NewGetAggregateDetectsParamsWithHTTPClient

func NewGetAggregateDetectsParamsWithHTTPClient(client *http.Client) *GetAggregateDetectsParams

NewGetAggregateDetectsParamsWithHTTPClient creates a new GetAggregateDetectsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAggregateDetectsParamsWithTimeout

func NewGetAggregateDetectsParamsWithTimeout(timeout time.Duration) *GetAggregateDetectsParams

NewGetAggregateDetectsParamsWithTimeout creates a new GetAggregateDetectsParams object with the ability to set a timeout on a request.

func (*GetAggregateDetectsParams) SetBody

SetBody adds the body to the get aggregate detects params

func (*GetAggregateDetectsParams) SetContext

func (o *GetAggregateDetectsParams) SetContext(ctx context.Context)

SetContext adds the context to the get aggregate detects params

func (*GetAggregateDetectsParams) SetDefaults

func (o *GetAggregateDetectsParams) SetDefaults()

SetDefaults hydrates default values in the get aggregate detects params (not the query body).

All values with no default are reset to their zero value.

func (*GetAggregateDetectsParams) SetHTTPClient

func (o *GetAggregateDetectsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get aggregate detects params

func (*GetAggregateDetectsParams) SetTimeout

func (o *GetAggregateDetectsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get aggregate detects params

func (*GetAggregateDetectsParams) WithBody

WithBody adds the body to the get aggregate detects params

func (*GetAggregateDetectsParams) WithContext

WithContext adds the context to the get aggregate detects params

func (*GetAggregateDetectsParams) WithDefaults

WithDefaults hydrates default values in the get aggregate detects params (not the query body).

All values with no default are reset to their zero value.

func (*GetAggregateDetectsParams) WithHTTPClient

func (o *GetAggregateDetectsParams) WithHTTPClient(client *http.Client) *GetAggregateDetectsParams

WithHTTPClient adds the HTTPClient to the get aggregate detects params

func (*GetAggregateDetectsParams) WithTimeout

WithTimeout adds the timeout to the get aggregate detects params

func (*GetAggregateDetectsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAggregateDetectsReader

type GetAggregateDetectsReader struct {
	// contains filtered or unexported fields
}

GetAggregateDetectsReader is a Reader for the GetAggregateDetects structure.

func (*GetAggregateDetectsReader) ReadResponse

func (o *GetAggregateDetectsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetAggregateDetectsTooManyRequests

type GetAggregateDetectsTooManyRequests struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}
GetAggregateDetectsTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewGetAggregateDetectsTooManyRequests

func NewGetAggregateDetectsTooManyRequests() *GetAggregateDetectsTooManyRequests

NewGetAggregateDetectsTooManyRequests creates a GetAggregateDetectsTooManyRequests with default headers values

func (*GetAggregateDetectsTooManyRequests) Error

func (*GetAggregateDetectsTooManyRequests) GetPayload

type GetDetectSummariesBadRequest

type GetDetectSummariesBadRequest struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.DomainMsaDetectSummariesResponse
}
GetDetectSummariesBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetDetectSummariesBadRequest

func NewGetDetectSummariesBadRequest() *GetDetectSummariesBadRequest

NewGetDetectSummariesBadRequest creates a GetDetectSummariesBadRequest with default headers values

func (*GetDetectSummariesBadRequest) Error

func (*GetDetectSummariesBadRequest) GetPayload

type GetDetectSummariesDefault

type GetDetectSummariesDefault struct {
	Payload *models.DomainMsaDetectSummariesResponse
	// contains filtered or unexported fields
}
GetDetectSummariesDefault describes a response with status code -1, with default header values.

OK

func NewGetDetectSummariesDefault

func NewGetDetectSummariesDefault(code int) *GetDetectSummariesDefault

NewGetDetectSummariesDefault creates a GetDetectSummariesDefault with default headers values

func (*GetDetectSummariesDefault) Code

func (o *GetDetectSummariesDefault) Code() int

Code gets the status code for the get detect summaries default response

func (*GetDetectSummariesDefault) Error

func (o *GetDetectSummariesDefault) Error() string

func (*GetDetectSummariesDefault) GetPayload

type GetDetectSummariesForbidden

type GetDetectSummariesForbidden struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
GetDetectSummariesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetDetectSummariesForbidden

func NewGetDetectSummariesForbidden() *GetDetectSummariesForbidden

NewGetDetectSummariesForbidden creates a GetDetectSummariesForbidden with default headers values

func (*GetDetectSummariesForbidden) Error

func (*GetDetectSummariesForbidden) GetPayload

type GetDetectSummariesInternalServerError

type GetDetectSummariesInternalServerError struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.DomainMsaDetectSummariesResponse
}
GetDetectSummariesInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetDetectSummariesInternalServerError

func NewGetDetectSummariesInternalServerError() *GetDetectSummariesInternalServerError

NewGetDetectSummariesInternalServerError creates a GetDetectSummariesInternalServerError with default headers values

func (*GetDetectSummariesInternalServerError) Error

func (*GetDetectSummariesInternalServerError) GetPayload

type GetDetectSummariesOK

type GetDetectSummariesOK struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.DomainMsaDetectSummariesResponse
}
GetDetectSummariesOK describes a response with status code 200, with default header values.

OK

func NewGetDetectSummariesOK

func NewGetDetectSummariesOK() *GetDetectSummariesOK

NewGetDetectSummariesOK creates a GetDetectSummariesOK with default headers values

func (*GetDetectSummariesOK) Error

func (o *GetDetectSummariesOK) Error() string

func (*GetDetectSummariesOK) GetPayload

type GetDetectSummariesParams

type GetDetectSummariesParams struct {

	/* Body.

	   View key attributes of detections, including the associated host, [disposition](https://falcon.crowdstrike.com/support/documentation/2/query-api-reference#patterndispositionvalue), objective/tactic/technique, adversary, and more. Specify one or more detection IDs (max 1000 per request). Find detection IDs with the `/detects/queries/detects/v1` endpoint, the Falcon console, or the Streaming API.
	*/
	Body *models.MsaIdsRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetDetectSummariesParams contains all the parameters to send to the API endpoint

for the get detect summaries operation.

Typically these are written to a http.Request.

func NewGetDetectSummariesParams

func NewGetDetectSummariesParams() *GetDetectSummariesParams

NewGetDetectSummariesParams creates a new GetDetectSummariesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetDetectSummariesParamsWithContext

func NewGetDetectSummariesParamsWithContext(ctx context.Context) *GetDetectSummariesParams

NewGetDetectSummariesParamsWithContext creates a new GetDetectSummariesParams object with the ability to set a context for a request.

func NewGetDetectSummariesParamsWithHTTPClient

func NewGetDetectSummariesParamsWithHTTPClient(client *http.Client) *GetDetectSummariesParams

NewGetDetectSummariesParamsWithHTTPClient creates a new GetDetectSummariesParams object with the ability to set a custom HTTPClient for a request.

func NewGetDetectSummariesParamsWithTimeout

func NewGetDetectSummariesParamsWithTimeout(timeout time.Duration) *GetDetectSummariesParams

NewGetDetectSummariesParamsWithTimeout creates a new GetDetectSummariesParams object with the ability to set a timeout on a request.

func (*GetDetectSummariesParams) SetBody

func (o *GetDetectSummariesParams) SetBody(body *models.MsaIdsRequest)

SetBody adds the body to the get detect summaries params

func (*GetDetectSummariesParams) SetContext

func (o *GetDetectSummariesParams) SetContext(ctx context.Context)

SetContext adds the context to the get detect summaries params

func (*GetDetectSummariesParams) SetDefaults

func (o *GetDetectSummariesParams) SetDefaults()

SetDefaults hydrates default values in the get detect summaries params (not the query body).

All values with no default are reset to their zero value.

func (*GetDetectSummariesParams) SetHTTPClient

func (o *GetDetectSummariesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get detect summaries params

func (*GetDetectSummariesParams) SetTimeout

func (o *GetDetectSummariesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get detect summaries params

func (*GetDetectSummariesParams) WithBody

WithBody adds the body to the get detect summaries params

func (*GetDetectSummariesParams) WithContext

WithContext adds the context to the get detect summaries params

func (*GetDetectSummariesParams) WithDefaults

WithDefaults hydrates default values in the get detect summaries params (not the query body).

All values with no default are reset to their zero value.

func (*GetDetectSummariesParams) WithHTTPClient

func (o *GetDetectSummariesParams) WithHTTPClient(client *http.Client) *GetDetectSummariesParams

WithHTTPClient adds the HTTPClient to the get detect summaries params

func (*GetDetectSummariesParams) WithTimeout

WithTimeout adds the timeout to the get detect summaries params

func (*GetDetectSummariesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDetectSummariesReader

type GetDetectSummariesReader struct {
	// contains filtered or unexported fields
}

GetDetectSummariesReader is a Reader for the GetDetectSummaries structure.

func (*GetDetectSummariesReader) ReadResponse

func (o *GetDetectSummariesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetDetectSummariesTooManyRequests

type GetDetectSummariesTooManyRequests struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}
GetDetectSummariesTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewGetDetectSummariesTooManyRequests

func NewGetDetectSummariesTooManyRequests() *GetDetectSummariesTooManyRequests

NewGetDetectSummariesTooManyRequests creates a GetDetectSummariesTooManyRequests with default headers values

func (*GetDetectSummariesTooManyRequests) Error

func (*GetDetectSummariesTooManyRequests) GetPayload

type QueryDetectsBadRequest

type QueryDetectsBadRequest struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaQueryResponse
}
QueryDetectsBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewQueryDetectsBadRequest

func NewQueryDetectsBadRequest() *QueryDetectsBadRequest

NewQueryDetectsBadRequest creates a QueryDetectsBadRequest with default headers values

func (*QueryDetectsBadRequest) Error

func (o *QueryDetectsBadRequest) Error() string

func (*QueryDetectsBadRequest) GetPayload

type QueryDetectsDefault

type QueryDetectsDefault struct {
	Payload *models.MsaQueryResponse
	// contains filtered or unexported fields
}
QueryDetectsDefault describes a response with status code -1, with default header values.

OK

func NewQueryDetectsDefault

func NewQueryDetectsDefault(code int) *QueryDetectsDefault

NewQueryDetectsDefault creates a QueryDetectsDefault with default headers values

func (*QueryDetectsDefault) Code

func (o *QueryDetectsDefault) Code() int

Code gets the status code for the query detects default response

func (*QueryDetectsDefault) Error

func (o *QueryDetectsDefault) Error() string

func (*QueryDetectsDefault) GetPayload

func (o *QueryDetectsDefault) GetPayload() *models.MsaQueryResponse

type QueryDetectsForbidden

type QueryDetectsForbidden struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
QueryDetectsForbidden describes a response with status code 403, with default header values.

Forbidden

func NewQueryDetectsForbidden

func NewQueryDetectsForbidden() *QueryDetectsForbidden

NewQueryDetectsForbidden creates a QueryDetectsForbidden with default headers values

func (*QueryDetectsForbidden) Error

func (o *QueryDetectsForbidden) Error() string

func (*QueryDetectsForbidden) GetPayload

type QueryDetectsInternalServerError

type QueryDetectsInternalServerError struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaQueryResponse
}
QueryDetectsInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewQueryDetectsInternalServerError

func NewQueryDetectsInternalServerError() *QueryDetectsInternalServerError

NewQueryDetectsInternalServerError creates a QueryDetectsInternalServerError with default headers values

func (*QueryDetectsInternalServerError) Error

func (*QueryDetectsInternalServerError) GetPayload

type QueryDetectsOK

type QueryDetectsOK struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaQueryResponse
}
QueryDetectsOK describes a response with status code 200, with default header values.

OK

func NewQueryDetectsOK

func NewQueryDetectsOK() *QueryDetectsOK

NewQueryDetectsOK creates a QueryDetectsOK with default headers values

func (*QueryDetectsOK) Error

func (o *QueryDetectsOK) Error() string

func (*QueryDetectsOK) GetPayload

func (o *QueryDetectsOK) GetPayload() *models.MsaQueryResponse

type QueryDetectsParams

type QueryDetectsParams struct {

	/* Filter.

	     Filter detections using a query in Falcon Query Language (FQL) An asterisk wildcard `*` includes all results.

	Common filter options include:

	- `status`
	- `device.device_id`
	- `max_severity`

	The full list of valid filter options is extensive. Review it in our [documentation inside the Falcon console](https://falcon.crowdstrike.com/support/documentation/2/query-api-reference#detections_fql).
	*/
	Filter *string

	/* Limit.

	   The maximum number of detections to return in this response (default: 9999; max: 9999). Use with the `offset` parameter to manage pagination of results.
	*/
	Limit *int64

	/* Offset.

	   The first detection to return, where `0` is the latest detection. Use with the `limit` parameter to manage pagination of results.
	*/
	Offset *int64

	/* Q.

	   Search all detection metadata for the provided string
	*/
	Q *string

	/* Sort.

	     Sort detections using these options:

	- `first_behavior`: Timestamp of the first behavior associated with this detection
	- `last_behavior`: Timestamp of the last behavior associated with this detection
	- `max_severity`: Highest severity of the behaviors associated with this detection
	- `max_confidence`: Highest confidence of the behaviors associated with this detection
	- `adversary_id`: ID of the adversary associated with this detection, if any
	- `devices.hostname`: Hostname of the host where this detection was detected

	Sort either `asc` (ascending) or `desc` (descending). For example: `last_behavior|asc`
	*/
	Sort *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

QueryDetectsParams contains all the parameters to send to the API endpoint

for the query detects operation.

Typically these are written to a http.Request.

func NewQueryDetectsParams

func NewQueryDetectsParams() *QueryDetectsParams

NewQueryDetectsParams creates a new QueryDetectsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewQueryDetectsParamsWithContext

func NewQueryDetectsParamsWithContext(ctx context.Context) *QueryDetectsParams

NewQueryDetectsParamsWithContext creates a new QueryDetectsParams object with the ability to set a context for a request.

func NewQueryDetectsParamsWithHTTPClient

func NewQueryDetectsParamsWithHTTPClient(client *http.Client) *QueryDetectsParams

NewQueryDetectsParamsWithHTTPClient creates a new QueryDetectsParams object with the ability to set a custom HTTPClient for a request.

func NewQueryDetectsParamsWithTimeout

func NewQueryDetectsParamsWithTimeout(timeout time.Duration) *QueryDetectsParams

NewQueryDetectsParamsWithTimeout creates a new QueryDetectsParams object with the ability to set a timeout on a request.

func (*QueryDetectsParams) SetContext

func (o *QueryDetectsParams) SetContext(ctx context.Context)

SetContext adds the context to the query detects params

func (*QueryDetectsParams) SetDefaults

func (o *QueryDetectsParams) SetDefaults()

SetDefaults hydrates default values in the query detects params (not the query body).

All values with no default are reset to their zero value.

func (*QueryDetectsParams) SetFilter

func (o *QueryDetectsParams) SetFilter(filter *string)

SetFilter adds the filter to the query detects params

func (*QueryDetectsParams) SetHTTPClient

func (o *QueryDetectsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the query detects params

func (*QueryDetectsParams) SetLimit

func (o *QueryDetectsParams) SetLimit(limit *int64)

SetLimit adds the limit to the query detects params

func (*QueryDetectsParams) SetOffset

func (o *QueryDetectsParams) SetOffset(offset *int64)

SetOffset adds the offset to the query detects params

func (*QueryDetectsParams) SetQ

func (o *QueryDetectsParams) SetQ(q *string)

SetQ adds the q to the query detects params

func (*QueryDetectsParams) SetSort

func (o *QueryDetectsParams) SetSort(sort *string)

SetSort adds the sort to the query detects params

func (*QueryDetectsParams) SetTimeout

func (o *QueryDetectsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the query detects params

func (*QueryDetectsParams) WithContext

WithContext adds the context to the query detects params

func (*QueryDetectsParams) WithDefaults

func (o *QueryDetectsParams) WithDefaults() *QueryDetectsParams

WithDefaults hydrates default values in the query detects params (not the query body).

All values with no default are reset to their zero value.

func (*QueryDetectsParams) WithFilter

func (o *QueryDetectsParams) WithFilter(filter *string) *QueryDetectsParams

WithFilter adds the filter to the query detects params

func (*QueryDetectsParams) WithHTTPClient

func (o *QueryDetectsParams) WithHTTPClient(client *http.Client) *QueryDetectsParams

WithHTTPClient adds the HTTPClient to the query detects params

func (*QueryDetectsParams) WithLimit

func (o *QueryDetectsParams) WithLimit(limit *int64) *QueryDetectsParams

WithLimit adds the limit to the query detects params

func (*QueryDetectsParams) WithOffset

func (o *QueryDetectsParams) WithOffset(offset *int64) *QueryDetectsParams

WithOffset adds the offset to the query detects params

func (*QueryDetectsParams) WithQ

WithQ adds the q to the query detects params

func (*QueryDetectsParams) WithSort

func (o *QueryDetectsParams) WithSort(sort *string) *QueryDetectsParams

WithSort adds the sort to the query detects params

func (*QueryDetectsParams) WithTimeout

func (o *QueryDetectsParams) WithTimeout(timeout time.Duration) *QueryDetectsParams

WithTimeout adds the timeout to the query detects params

func (*QueryDetectsParams) WriteToRequest

func (o *QueryDetectsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type QueryDetectsReader

type QueryDetectsReader struct {
	// contains filtered or unexported fields
}

QueryDetectsReader is a Reader for the QueryDetects structure.

func (*QueryDetectsReader) ReadResponse

func (o *QueryDetectsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type QueryDetectsTooManyRequests

type QueryDetectsTooManyRequests struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}
QueryDetectsTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewQueryDetectsTooManyRequests

func NewQueryDetectsTooManyRequests() *QueryDetectsTooManyRequests

NewQueryDetectsTooManyRequests creates a QueryDetectsTooManyRequests with default headers values

func (*QueryDetectsTooManyRequests) Error

func (*QueryDetectsTooManyRequests) GetPayload

type UpdateDetectsByIdsV2BadRequest

type UpdateDetectsByIdsV2BadRequest struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
UpdateDetectsByIdsV2BadRequest describes a response with status code 400, with default header values.

Bad Request

func NewUpdateDetectsByIdsV2BadRequest

func NewUpdateDetectsByIdsV2BadRequest() *UpdateDetectsByIdsV2BadRequest

NewUpdateDetectsByIdsV2BadRequest creates a UpdateDetectsByIdsV2BadRequest with default headers values

func (*UpdateDetectsByIdsV2BadRequest) Error

func (*UpdateDetectsByIdsV2BadRequest) GetPayload

type UpdateDetectsByIdsV2Default

type UpdateDetectsByIdsV2Default struct {
	Payload *models.MsaReplyMetaOnly
	// contains filtered or unexported fields
}
UpdateDetectsByIdsV2Default describes a response with status code -1, with default header values.

OK

func NewUpdateDetectsByIdsV2Default

func NewUpdateDetectsByIdsV2Default(code int) *UpdateDetectsByIdsV2Default

NewUpdateDetectsByIdsV2Default creates a UpdateDetectsByIdsV2Default with default headers values

func (*UpdateDetectsByIdsV2Default) Code

func (o *UpdateDetectsByIdsV2Default) Code() int

Code gets the status code for the update detects by ids v2 default response

func (*UpdateDetectsByIdsV2Default) Error

func (*UpdateDetectsByIdsV2Default) GetPayload

type UpdateDetectsByIdsV2Forbidden

type UpdateDetectsByIdsV2Forbidden struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
UpdateDetectsByIdsV2Forbidden describes a response with status code 403, with default header values.

Forbidden

func NewUpdateDetectsByIdsV2Forbidden

func NewUpdateDetectsByIdsV2Forbidden() *UpdateDetectsByIdsV2Forbidden

NewUpdateDetectsByIdsV2Forbidden creates a UpdateDetectsByIdsV2Forbidden with default headers values

func (*UpdateDetectsByIdsV2Forbidden) Error

func (*UpdateDetectsByIdsV2Forbidden) GetPayload

type UpdateDetectsByIdsV2InternalServerError

type UpdateDetectsByIdsV2InternalServerError struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
UpdateDetectsByIdsV2InternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewUpdateDetectsByIdsV2InternalServerError

func NewUpdateDetectsByIdsV2InternalServerError() *UpdateDetectsByIdsV2InternalServerError

NewUpdateDetectsByIdsV2InternalServerError creates a UpdateDetectsByIdsV2InternalServerError with default headers values

func (*UpdateDetectsByIdsV2InternalServerError) Error

func (*UpdateDetectsByIdsV2InternalServerError) GetPayload

type UpdateDetectsByIdsV2OK

type UpdateDetectsByIdsV2OK struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}
UpdateDetectsByIdsV2OK describes a response with status code 200, with default header values.

OK

func NewUpdateDetectsByIdsV2OK

func NewUpdateDetectsByIdsV2OK() *UpdateDetectsByIdsV2OK

NewUpdateDetectsByIdsV2OK creates a UpdateDetectsByIdsV2OK with default headers values

func (*UpdateDetectsByIdsV2OK) Error

func (o *UpdateDetectsByIdsV2OK) Error() string

func (*UpdateDetectsByIdsV2OK) GetPayload

type UpdateDetectsByIdsV2Params

type UpdateDetectsByIdsV2Params struct {

	/* Body.

	     This endpoint modifies attributes (state and assignee) of detections.

	This endpoint accepts a query formatted as a JSON array of key-value pairs. You can update one or more attributes one or more detections with a single request.

	**`assigned_to_uuid` values**

	A user ID, such as `1234567891234567891`

	**`ids` values**

	One or more detection IDs, which you can find with the `/detects/queries/detects/v1` endpoint, the Falcon console, or the Streaming API.

	**`show_in_ui` values**

	- `true`: This detection is displayed in Falcon
	- `false`: This detection is not displayed in Falcon. Most commonly used together with the `status` key's `false_positive` value.

	**`status` values**

	- `new`
	- `in_progress`
	- `true_positive`
	- `false_positive`
	- `ignored`

	**`comment` values**
	Optional comment to add to the detection. Comments are displayed with the detection in Falcon and usually used to provide context or notes for other Falcon users. A detection can have multiple comments over time.
	*/
	Body *models.DomainDetectsEntitiesPatchRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateDetectsByIdsV2Params contains all the parameters to send to the API endpoint

for the update detects by ids v2 operation.

Typically these are written to a http.Request.

func NewUpdateDetectsByIdsV2Params

func NewUpdateDetectsByIdsV2Params() *UpdateDetectsByIdsV2Params

NewUpdateDetectsByIdsV2Params creates a new UpdateDetectsByIdsV2Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateDetectsByIdsV2ParamsWithContext

func NewUpdateDetectsByIdsV2ParamsWithContext(ctx context.Context) *UpdateDetectsByIdsV2Params

NewUpdateDetectsByIdsV2ParamsWithContext creates a new UpdateDetectsByIdsV2Params object with the ability to set a context for a request.

func NewUpdateDetectsByIdsV2ParamsWithHTTPClient

func NewUpdateDetectsByIdsV2ParamsWithHTTPClient(client *http.Client) *UpdateDetectsByIdsV2Params

NewUpdateDetectsByIdsV2ParamsWithHTTPClient creates a new UpdateDetectsByIdsV2Params object with the ability to set a custom HTTPClient for a request.

func NewUpdateDetectsByIdsV2ParamsWithTimeout

func NewUpdateDetectsByIdsV2ParamsWithTimeout(timeout time.Duration) *UpdateDetectsByIdsV2Params

NewUpdateDetectsByIdsV2ParamsWithTimeout creates a new UpdateDetectsByIdsV2Params object with the ability to set a timeout on a request.

func (*UpdateDetectsByIdsV2Params) SetBody

SetBody adds the body to the update detects by ids v2 params

func (*UpdateDetectsByIdsV2Params) SetContext

func (o *UpdateDetectsByIdsV2Params) SetContext(ctx context.Context)

SetContext adds the context to the update detects by ids v2 params

func (*UpdateDetectsByIdsV2Params) SetDefaults

func (o *UpdateDetectsByIdsV2Params) SetDefaults()

SetDefaults hydrates default values in the update detects by ids v2 params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateDetectsByIdsV2Params) SetHTTPClient

func (o *UpdateDetectsByIdsV2Params) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update detects by ids v2 params

func (*UpdateDetectsByIdsV2Params) SetTimeout

func (o *UpdateDetectsByIdsV2Params) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update detects by ids v2 params

func (*UpdateDetectsByIdsV2Params) WithBody

WithBody adds the body to the update detects by ids v2 params

func (*UpdateDetectsByIdsV2Params) WithContext

WithContext adds the context to the update detects by ids v2 params

func (*UpdateDetectsByIdsV2Params) WithDefaults

WithDefaults hydrates default values in the update detects by ids v2 params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateDetectsByIdsV2Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update detects by ids v2 params

func (*UpdateDetectsByIdsV2Params) WithTimeout

WithTimeout adds the timeout to the update detects by ids v2 params

func (*UpdateDetectsByIdsV2Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateDetectsByIdsV2Reader

type UpdateDetectsByIdsV2Reader struct {
	// contains filtered or unexported fields
}

UpdateDetectsByIdsV2Reader is a Reader for the UpdateDetectsByIdsV2 structure.

func (*UpdateDetectsByIdsV2Reader) ReadResponse

func (o *UpdateDetectsByIdsV2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateDetectsByIdsV2TooManyRequests

type UpdateDetectsByIdsV2TooManyRequests struct {

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}
UpdateDetectsByIdsV2TooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewUpdateDetectsByIdsV2TooManyRequests

func NewUpdateDetectsByIdsV2TooManyRequests() *UpdateDetectsByIdsV2TooManyRequests

NewUpdateDetectsByIdsV2TooManyRequests creates a UpdateDetectsByIdsV2TooManyRequests with default headers values

func (*UpdateDetectsByIdsV2TooManyRequests) Error

func (*UpdateDetectsByIdsV2TooManyRequests) GetPayload

Jump to

Keyboard shortcuts

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