client

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildGetFixedIssuesStatsPayload

func BuildGetFixedIssuesStatsPayload(statsGetFixedIssuesStatsTeam string, statsGetFixedIssuesStatsTeams string, statsGetFixedIssuesStatsMinDate string, statsGetFixedIssuesStatsMaxDate string, statsGetFixedIssuesStatsAtDate string, statsGetFixedIssuesStatsIdentifiers string, statsGetFixedIssuesStatsLabels string) (*stats.GetFixedIssuesStatsPayload, error)

BuildGetFixedIssuesStatsPayload builds the payload for the stats Get fixed issues stats endpoint from CLI flags.

func BuildGetIssuesStatsPayload

func BuildGetIssuesStatsPayload(statsGetIssuesStatsMinDate string, statsGetIssuesStatsMaxDate string, statsGetIssuesStatsMinScore string, statsGetIssuesStatsMaxScore string) (*stats.GetIssuesStatsPayload, error)

BuildGetIssuesStatsPayload builds the payload for the stats Get issues stats endpoint from CLI flags.

func BuildGetOpenIssuesStatsPayload

func BuildGetOpenIssuesStatsPayload(statsGetOpenIssuesStatsTeam string, statsGetOpenIssuesStatsTeams string, statsGetOpenIssuesStatsMinDate string, statsGetOpenIssuesStatsMaxDate string, statsGetOpenIssuesStatsAtDate string, statsGetOpenIssuesStatsIdentifiers string, statsGetOpenIssuesStatsLabels string) (*stats.GetOpenIssuesStatsPayload, error)

BuildGetOpenIssuesStatsPayload builds the payload for the stats Get open issues stats endpoint from CLI flags.

func BuildGetStatsAssetsPerSeverityPayload

func BuildGetStatsAssetsPerSeverityPayload(statsGetStatsAssetsPerSeverityTeam string, statsGetStatsAssetsPerSeverityTeams string, statsGetStatsAssetsPerSeverityIdentifiers string, statsGetStatsAssetsPerSeverityLabels string) (*stats.GetStatsAssetsPerSeverityPayload, error)

BuildGetStatsAssetsPerSeverityPayload builds the payload for the stats Get stats assets per severity endpoint from CLI flags.

func BuildGetStatsCurrentExposurePayload

func BuildGetStatsCurrentExposurePayload(statsGetStatsCurrentExposureTeam string, statsGetStatsCurrentExposureTeams string, statsGetStatsCurrentExposureMinScore string, statsGetStatsCurrentExposureMaxScore string, statsGetStatsCurrentExposureLabels string) (*stats.GetStatsCurrentExposurePayload, error)

BuildGetStatsCurrentExposurePayload builds the payload for the stats Get stats current exposure endpoint from CLI flags.

func BuildGetStatsExposurePayload

func BuildGetStatsExposurePayload(statsGetStatsExposureTeam string, statsGetStatsExposureTeams string, statsGetStatsExposureAtDate string, statsGetStatsExposureMinScore string, statsGetStatsExposureMaxScore string) (*stats.GetStatsExposurePayload, error)

BuildGetStatsExposurePayload builds the payload for the stats Get stats exposure endpoint from CLI flags.

func BuildGetStatsMTTRPayload

func BuildGetStatsMTTRPayload(statsGetStatsMTTRTeam string, statsGetStatsMTTRTeams string, statsGetStatsMTTRMinDate string, statsGetStatsMTTRMaxDate string, statsGetStatsMTTRLabels string) (*stats.GetStatsMTTRPayload, error)

BuildGetStatsMTTRPayload builds the payload for the stats Get stats MTTR endpoint from CLI flags.

func DecodeGetFixedIssuesStatsResponse

func DecodeGetFixedIssuesStatsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeGetFixedIssuesStatsResponse returns a decoder for responses returned by the stats Get fixed issues stats endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeGetIssuesStatsResponse

func DecodeGetIssuesStatsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeGetIssuesStatsResponse returns a decoder for responses returned by the stats Get issues stats endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeGetOpenIssuesStatsResponse

func DecodeGetOpenIssuesStatsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeGetOpenIssuesStatsResponse returns a decoder for responses returned by the stats Get open issues stats endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeGetSizeStatsResponse

func DecodeGetSizeStatsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeGetSizeStatsResponse returns a decoder for responses returned by the stats Get size stats endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeGetStatsAssetsPerSeverityResponse

func DecodeGetStatsAssetsPerSeverityResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeGetStatsAssetsPerSeverityResponse returns a decoder for responses returned by the stats Get stats assets per severity endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeGetStatsCurrentExposureResponse

func DecodeGetStatsCurrentExposureResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeGetStatsCurrentExposureResponse returns a decoder for responses returned by the stats Get stats current exposure endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeGetStatsExposureResponse

func DecodeGetStatsExposureResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeGetStatsExposureResponse returns a decoder for responses returned by the stats Get stats exposure endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeGetStatsMTTRResponse

func DecodeGetStatsMTTRResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeGetStatsMTTRResponse returns a decoder for responses returned by the stats Get stats MTTR endpoint. restoreBody controls whether the response body should be restored after having been read.

func EncodeGetFixedIssuesStatsRequest

func EncodeGetFixedIssuesStatsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeGetFixedIssuesStatsRequest returns an encoder for requests sent to the stats Get fixed issues stats server.

func EncodeGetIssuesStatsRequest

func EncodeGetIssuesStatsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeGetIssuesStatsRequest returns an encoder for requests sent to the stats Get issues stats server.

func EncodeGetOpenIssuesStatsRequest

func EncodeGetOpenIssuesStatsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeGetOpenIssuesStatsRequest returns an encoder for requests sent to the stats Get open issues stats server.

func EncodeGetStatsAssetsPerSeverityRequest

func EncodeGetStatsAssetsPerSeverityRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeGetStatsAssetsPerSeverityRequest returns an encoder for requests sent to the stats Get stats assets per severity server.

func EncodeGetStatsCurrentExposureRequest

func EncodeGetStatsCurrentExposureRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeGetStatsCurrentExposureRequest returns an encoder for requests sent to the stats Get stats current exposure server.

func EncodeGetStatsExposureRequest

func EncodeGetStatsExposureRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeGetStatsExposureRequest returns an encoder for requests sent to the stats Get stats exposure server.

func EncodeGetStatsMTTRRequest

func EncodeGetStatsMTTRRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeGetStatsMTTRRequest returns an encoder for requests sent to the stats Get stats MTTR server.

func GetFixedIssuesStatsStatsPath

func GetFixedIssuesStatsStatsPath() string

GetFixedIssuesStatsStatsPath returns the URL path to the stats service Get fixed issues stats HTTP endpoint.

func GetIssuesStatsStatsPath

func GetIssuesStatsStatsPath() string

GetIssuesStatsStatsPath returns the URL path to the stats service Get issues stats HTTP endpoint.

func GetOpenIssuesStatsStatsPath

func GetOpenIssuesStatsStatsPath() string

GetOpenIssuesStatsStatsPath returns the URL path to the stats service Get open issues stats HTTP endpoint.

func GetSizeStatsStatsPath

func GetSizeStatsStatsPath() string

GetSizeStatsStatsPath returns the URL path to the stats service Get size stats HTTP endpoint.

func GetStatsAssetsPerSeverityStatsPath

func GetStatsAssetsPerSeverityStatsPath() string

GetStatsAssetsPerSeverityStatsPath returns the URL path to the stats service Get stats assets per severity HTTP endpoint.

func GetStatsCurrentExposureStatsPath

func GetStatsCurrentExposureStatsPath() string

GetStatsCurrentExposureStatsPath returns the URL path to the stats service Get stats current exposure HTTP endpoint.

func GetStatsExposureStatsPath

func GetStatsExposureStatsPath() string

GetStatsExposureStatsPath returns the URL path to the stats service Get stats exposure HTTP endpoint.

func GetStatsMTTRStatsPath

func GetStatsMTTRStatsPath() string

GetStatsMTTRStatsPath returns the URL path to the stats service Get stats MTTR HTTP endpoint.

func NewGetFixedIssuesStatsSeverityOK

func NewGetFixedIssuesStatsSeverityOK(body *GetFixedIssuesStatsResponseBody) *statsviews.SeverityView

NewGetFixedIssuesStatsSeverityOK builds a "stats" service "Get fixed issues stats" endpoint result from a HTTP "OK" response.

func NewGetIssuesStatsIssueStatsCollectionOK

func NewGetIssuesStatsIssueStatsCollectionOK(body GetIssuesStatsResponseBody) statsviews.IssueStatsCollectionView

NewGetIssuesStatsIssueStatsCollectionOK builds a "stats" service "Get issues stats" endpoint result from a HTTP "OK" response.

func NewGetOpenIssuesStatsSeverityOK

func NewGetOpenIssuesStatsSeverityOK(body *GetOpenIssuesStatsResponseBody) *statsviews.SeverityView

NewGetOpenIssuesStatsSeverityOK builds a "stats" service "Get open issues stats" endpoint result from a HTTP "OK" response.

func NewGetSizeStatsSizeOK

func NewGetSizeStatsSizeOK(body *GetSizeStatsResponseBody) *statsviews.SizeView

NewGetSizeStatsSizeOK builds a "stats" service "Get size stats" endpoint result from a HTTP "OK" response.

func NewGetStatsAssetsPerSeveritySeverityAndTotalOK

func NewGetStatsAssetsPerSeveritySeverityAndTotalOK(body *GetStatsAssetsPerSeverityResponseBody) *statsviews.SeverityAndTotalView

NewGetStatsAssetsPerSeveritySeverityAndTotalOK builds a "stats" service "Get stats assets per severity" endpoint result from a HTTP "OK" response.

func NewGetStatsCurrentExposureCurrentExposureOK

func NewGetStatsCurrentExposureCurrentExposureOK(body *GetStatsCurrentExposureResponseBody) *statsviews.CurrentExposureView

NewGetStatsCurrentExposureCurrentExposureOK builds a "stats" service "Get stats current exposure" endpoint result from a HTTP "OK" response.

func NewGetStatsExposureExposureOK

func NewGetStatsExposureExposureOK(body *GetStatsExposureResponseBody) *statsviews.ExposureView

NewGetStatsExposureExposureOK builds a "stats" service "Get stats exposure" endpoint result from a HTTP "OK" response.

func NewGetStatsMTTRSeverityAndTotalOK

func NewGetStatsMTTRSeverityAndTotalOK(body *GetStatsMTTRResponseBody) *statsviews.SeverityAndTotalView

NewGetStatsMTTRSeverityAndTotalOK builds a "stats" service "Get stats MTTR" endpoint result from a HTTP "OK" response.

Types

type Client

type Client struct {
	// GetSizeStats Doer is the HTTP client used to make requests to the Get size
	// stats endpoint.
	GetSizeStatsDoer goahttp.Doer

	// GetOpenIssuesStats Doer is the HTTP client used to make requests to the Get
	// open issues stats endpoint.
	GetOpenIssuesStatsDoer goahttp.Doer

	// GetFixedIssuesStats Doer is the HTTP client used to make requests to the Get
	// fixed issues stats endpoint.
	GetFixedIssuesStatsDoer goahttp.Doer

	// GetStatsAssetsPerSeverity Doer is the HTTP client used to make requests to
	// the Get stats assets per severity endpoint.
	GetStatsAssetsPerSeverityDoer goahttp.Doer

	// GetIssuesStats Doer is the HTTP client used to make requests to the Get
	// issues stats endpoint.
	GetIssuesStatsDoer goahttp.Doer

	// GetStatsMTTR Doer is the HTTP client used to make requests to the Get stats
	// MTTR endpoint.
	GetStatsMTTRDoer goahttp.Doer

	// GetStatsExposure Doer is the HTTP client used to make requests to the Get
	// stats exposure endpoint.
	GetStatsExposureDoer goahttp.Doer

	// GetStatsCurrentExposure Doer is the HTTP client used to make requests to the
	// Get stats current exposure endpoint.
	GetStatsCurrentExposureDoer goahttp.Doer

	// RestoreResponseBody controls whether the response bodies are reset after
	// decoding so they can be read again.
	RestoreResponseBody bool
	// contains filtered or unexported fields
}

Client lists the stats service endpoint HTTP clients.

func NewClient

func NewClient(
	scheme string,
	host string,
	doer goahttp.Doer,
	enc func(*http.Request) goahttp.Encoder,
	dec func(*http.Response) goahttp.Decoder,
	restoreBody bool,
) *Client

NewClient instantiates HTTP clients for all the stats service servers.

func (*Client) BuildGetFixedIssuesStatsRequest

func (c *Client) BuildGetFixedIssuesStatsRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildGetFixedIssuesStatsRequest instantiates a HTTP request object with method and path set to call the "stats" service "Get fixed issues stats" endpoint

func (*Client) BuildGetIssuesStatsRequest

func (c *Client) BuildGetIssuesStatsRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildGetIssuesStatsRequest instantiates a HTTP request object with method and path set to call the "stats" service "Get issues stats" endpoint

func (*Client) BuildGetOpenIssuesStatsRequest

func (c *Client) BuildGetOpenIssuesStatsRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildGetOpenIssuesStatsRequest instantiates a HTTP request object with method and path set to call the "stats" service "Get open issues stats" endpoint

func (*Client) BuildGetSizeStatsRequest

func (c *Client) BuildGetSizeStatsRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildGetSizeStatsRequest instantiates a HTTP request object with method and path set to call the "stats" service "Get size stats" endpoint

func (*Client) BuildGetStatsAssetsPerSeverityRequest

func (c *Client) BuildGetStatsAssetsPerSeverityRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildGetStatsAssetsPerSeverityRequest instantiates a HTTP request object with method and path set to call the "stats" service "Get stats assets per severity" endpoint

func (*Client) BuildGetStatsCurrentExposureRequest

func (c *Client) BuildGetStatsCurrentExposureRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildGetStatsCurrentExposureRequest instantiates a HTTP request object with method and path set to call the "stats" service "Get stats current exposure" endpoint

func (*Client) BuildGetStatsExposureRequest

func (c *Client) BuildGetStatsExposureRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildGetStatsExposureRequest instantiates a HTTP request object with method and path set to call the "stats" service "Get stats exposure" endpoint

func (*Client) BuildGetStatsMTTRRequest

func (c *Client) BuildGetStatsMTTRRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildGetStatsMTTRRequest instantiates a HTTP request object with method and path set to call the "stats" service "Get stats MTTR" endpoint

func (*Client) GetFixedIssuesStats

func (c *Client) GetFixedIssuesStats() goa.Endpoint

GetFixedIssuesStats returns an endpoint that makes HTTP requests to the stats service Get fixed issues stats server.

func (*Client) GetIssuesStats

func (c *Client) GetIssuesStats() goa.Endpoint

GetIssuesStats returns an endpoint that makes HTTP requests to the stats service Get issues stats server.

func (*Client) GetOpenIssuesStats

func (c *Client) GetOpenIssuesStats() goa.Endpoint

GetOpenIssuesStats returns an endpoint that makes HTTP requests to the stats service Get open issues stats server.

func (*Client) GetSizeStats

func (c *Client) GetSizeStats() goa.Endpoint

GetSizeStats returns an endpoint that makes HTTP requests to the stats service Get size stats server.

func (*Client) GetStatsAssetsPerSeverity

func (c *Client) GetStatsAssetsPerSeverity() goa.Endpoint

GetStatsAssetsPerSeverity returns an endpoint that makes HTTP requests to the stats service Get stats assets per severity server.

func (*Client) GetStatsCurrentExposure

func (c *Client) GetStatsCurrentExposure() goa.Endpoint

GetStatsCurrentExposure returns an endpoint that makes HTTP requests to the stats service Get stats current exposure server.

func (*Client) GetStatsExposure

func (c *Client) GetStatsExposure() goa.Endpoint

GetStatsExposure returns an endpoint that makes HTTP requests to the stats service Get stats exposure server.

func (*Client) GetStatsMTTR

func (c *Client) GetStatsMTTR() goa.Endpoint

GetStatsMTTR returns an endpoint that makes HTTP requests to the stats service Get stats MTTR server.

type GetFixedIssuesStatsResponseBody

type GetFixedIssuesStatsResponseBody struct {
	// Number of critial issues
	Critical *int `form:"critical,omitempty" json:"critical,omitempty" xml:"critical,omitempty"`
	// Number of high issues
	High *int `form:"high,omitempty" json:"high,omitempty" xml:"high,omitempty"`
	// Number of medium issues
	Medium *int `form:"medium,omitempty" json:"medium,omitempty" xml:"medium,omitempty"`
	// Number of low issues
	Low *int `form:"low,omitempty" json:"low,omitempty" xml:"low,omitempty"`
	// Number of informational issues
	Informational *int `form:"informational,omitempty" json:"informational,omitempty" xml:"informational,omitempty"`
}

GetFixedIssuesStatsResponseBody is the type of the "stats" service "Get fixed issues stats" endpoint HTTP response body.

type GetIssuesStatsResponseBody

type GetIssuesStatsResponseBody []*IssueStatsResponse

GetIssuesStatsResponseBody is the type of the "stats" service "Get issues stats" endpoint HTTP response body.

type GetOpenIssuesStatsResponseBody

type GetOpenIssuesStatsResponseBody struct {
	// Number of critial issues
	Critical *int `form:"critical,omitempty" json:"critical,omitempty" xml:"critical,omitempty"`
	// Number of high issues
	High *int `form:"high,omitempty" json:"high,omitempty" xml:"high,omitempty"`
	// Number of medium issues
	Medium *int `form:"medium,omitempty" json:"medium,omitempty" xml:"medium,omitempty"`
	// Number of low issues
	Low *int `form:"low,omitempty" json:"low,omitempty" xml:"low,omitempty"`
	// Number of informational issues
	Informational *int `form:"informational,omitempty" json:"informational,omitempty" xml:"informational,omitempty"`
}

GetOpenIssuesStatsResponseBody is the type of the "stats" service "Get open issues stats" endpoint HTTP response body.

type GetSizeStatsResponseBody

type GetSizeStatsResponseBody struct {
	// Number of sources
	Sources *int `form:"sources,omitempty" json:"sources,omitempty" xml:"sources,omitempty"`
	// Number of targets
	Targets *int `form:"targets,omitempty" json:"targets,omitempty" xml:"targets,omitempty"`
	// Number of issues
	Issues *int `form:"issues,omitempty" json:"issues,omitempty" xml:"issues,omitempty"`
	// Number of findings
	Findings *int `form:"findings,omitempty" json:"findings,omitempty" xml:"findings,omitempty"`
	// Number of finding events
	FindingEvents *int `form:"finding_events,omitempty" json:"finding_events,omitempty" xml:"finding_events,omitempty"`
}

GetSizeStatsResponseBody is the type of the "stats" service "Get size stats" endpoint HTTP response body.

type GetStatsAssetsPerSeverityResponseBody

type GetStatsAssetsPerSeverityResponseBody struct {
	// Value for critical severity
	Critical *int `form:"critical,omitempty" json:"critical,omitempty" xml:"critical,omitempty"`
	// Value for high severity
	High *int `form:"high,omitempty" json:"high,omitempty" xml:"high,omitempty"`
	// Value for medium severity
	Medium *int `form:"medium,omitempty" json:"medium,omitempty" xml:"medium,omitempty"`
	// Value for low severity
	Low *int `form:"low,omitempty" json:"low,omitempty" xml:"low,omitempty"`
	// Value for informational severity
	Informational *int `form:"informational,omitempty" json:"informational,omitempty" xml:"informational,omitempty"`
	// Total number of issues
	Total *int `form:"total,omitempty" json:"total,omitempty" xml:"total,omitempty"`
}

GetStatsAssetsPerSeverityResponseBody is the type of the "stats" service "Get stats assets per severity" endpoint HTTP response body.

type GetStatsCurrentExposureResponseBody

type GetStatsCurrentExposureResponseBody struct {
	// Percentile 10 of exposure
	Percentile10 *float32 `form:"percentile_10,omitempty" json:"percentile_10,omitempty" xml:"percentile_10,omitempty"`
	// Percentile 25 of exposure or first quartile
	Percentile25 *float32 `form:"percentile_25,omitempty" json:"percentile_25,omitempty" xml:"percentile_25,omitempty"`
	// Percentile 50 of exposure or median
	Percentile50 *float32 `form:"percentile_50,omitempty" json:"percentile_50,omitempty" xml:"percentile_50,omitempty"`
	// Percentile 75 of exposure or third quartile
	Percentile75 *float32 `form:"percentile_75,omitempty" json:"percentile_75,omitempty" xml:"percentile_75,omitempty"`
	// Percentile 90 of exposure
	Percentile90 *float32 `form:"percentile_90,omitempty" json:"percentile_90,omitempty" xml:"percentile_90,omitempty"`
	// Mean exposure
	Mean *float32 `form:"mean,omitempty" json:"mean,omitempty" xml:"mean,omitempty"`
}

GetStatsCurrentExposureResponseBody is the type of the "stats" service "Get stats current exposure" endpoint HTTP response body.

type GetStatsExposureResponseBody

type GetStatsExposureResponseBody struct {
	// Percentile 10 of exposure
	Percentile10 *float32 `form:"percentile_10,omitempty" json:"percentile_10,omitempty" xml:"percentile_10,omitempty"`
	// Percentile 25 of exposure or first quartile
	Percentile25 *float32 `form:"percentile_25,omitempty" json:"percentile_25,omitempty" xml:"percentile_25,omitempty"`
	// Percentile 50 of exposure or median
	Percentile50 *float32 `form:"percentile_50,omitempty" json:"percentile_50,omitempty" xml:"percentile_50,omitempty"`
	// Percentile 75 of exposure or third quartile
	Percentile75 *float32 `form:"percentile_75,omitempty" json:"percentile_75,omitempty" xml:"percentile_75,omitempty"`
	// Percentile 90 of exposure
	Percentile90 *float32 `form:"percentile_90,omitempty" json:"percentile_90,omitempty" xml:"percentile_90,omitempty"`
	// Mean exposure
	Mean *float32 `form:"mean,omitempty" json:"mean,omitempty" xml:"mean,omitempty"`
}

GetStatsExposureResponseBody is the type of the "stats" service "Get stats exposure" endpoint HTTP response body.

type GetStatsMTTRResponseBody

type GetStatsMTTRResponseBody struct {
	// Value for critical severity
	Critical *int `form:"critical,omitempty" json:"critical,omitempty" xml:"critical,omitempty"`
	// Value for high severity
	High *int `form:"high,omitempty" json:"high,omitempty" xml:"high,omitempty"`
	// Value for medium severity
	Medium *int `form:"medium,omitempty" json:"medium,omitempty" xml:"medium,omitempty"`
	// Value for low severity
	Low *int `form:"low,omitempty" json:"low,omitempty" xml:"low,omitempty"`
	// Value for informational severity
	Informational *int `form:"informational,omitempty" json:"informational,omitempty" xml:"informational,omitempty"`
	// Total number of issues
	Total *int `form:"total,omitempty" json:"total,omitempty" xml:"total,omitempty"`
}

GetStatsMTTRResponseBody is the type of the "stats" service "Get stats MTTR" endpoint HTTP response body.

type IssueStatsResponse

type IssueStatsResponse struct {
	// Issue ID
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Issue summary
	Summary *string `form:"summary,omitempty" json:"summary,omitempty" xml:"summary,omitempty"`
	// Common Weakness Enumeration ID
	CweID *int `form:"cwe_id,omitempty" json:"cwe_id,omitempty" xml:"cwe_id,omitempty"`
	// Issue description
	Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"`
	// Recommendations to fix the issue
	Recommendations []string `form:"recommendations,omitempty" json:"recommendations,omitempty" xml:"recommendations,omitempty"`
	// Documentation reference for the issue
	ReferenceLinks []string `form:"reference_links,omitempty" json:"reference_links,omitempty" xml:"reference_links,omitempty"`
	// Number of OPEN findings for this issue
	Open *int `form:"open,omitempty" json:"open,omitempty" xml:"open,omitempty"`
	// Number of FIXED findings for this issue
	Fixed *int `form:"fixed,omitempty" json:"fixed,omitempty" xml:"fixed,omitempty"`
}

IssueStatsResponse is used to define fields on response body types.

Jump to

Keyboard shortcuts

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