Documentation ¶
Index ¶
- func DecodeGetFixedIssuesStatsRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeGetIssuesStatsRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeGetOpenIssuesStatsRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeGetStatsAssetsPerSeverityRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeGetStatsCurrentExposureRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeGetStatsExposureRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeGetStatsMTTRRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func EncodeGetFixedIssuesStatsResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeGetIssuesStatsResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeGetOpenIssuesStatsResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeGetSizeStatsResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeGetStatsAssetsPerSeverityResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeGetStatsCurrentExposureResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeGetStatsExposureResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeGetStatsMTTRResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func GetFixedIssuesStatsStatsPath() string
- func GetIssuesStatsStatsPath() string
- func GetOpenIssuesStatsStatsPath() string
- func GetSizeStatsStatsPath() string
- func GetStatsAssetsPerSeverityStatsPath() string
- func GetStatsCurrentExposureStatsPath() string
- func GetStatsExposureStatsPath() string
- func GetStatsMTTRStatsPath() string
- func Mount(mux goahttp.Muxer, h *Server)
- func MountGetFixedIssuesStatsHandler(mux goahttp.Muxer, h http.Handler)
- func MountGetIssuesStatsHandler(mux goahttp.Muxer, h http.Handler)
- func MountGetOpenIssuesStatsHandler(mux goahttp.Muxer, h http.Handler)
- func MountGetSizeStatsHandler(mux goahttp.Muxer, h http.Handler)
- func MountGetStatsAssetsPerSeverityHandler(mux goahttp.Muxer, h http.Handler)
- func MountGetStatsCurrentExposureHandler(mux goahttp.Muxer, h http.Handler)
- func MountGetStatsExposureHandler(mux goahttp.Muxer, h http.Handler)
- func MountGetStatsMTTRHandler(mux goahttp.Muxer, h http.Handler)
- func NewGetFixedIssuesStatsHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewGetFixedIssuesStatsPayload(team *string, teams *string, minDate *string, maxDate *string, atDate *string, ...) *stats.GetFixedIssuesStatsPayload
- func NewGetIssuesStatsHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewGetIssuesStatsPayload(minDate *string, maxDate *string, minScore *int, maxScore *int) *stats.GetIssuesStatsPayload
- func NewGetOpenIssuesStatsHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewGetOpenIssuesStatsPayload(team *string, teams *string, minDate *string, maxDate *string, atDate *string, ...) *stats.GetOpenIssuesStatsPayload
- func NewGetSizeStatsHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewGetStatsAssetsPerSeverityHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewGetStatsAssetsPerSeverityPayload(team *string, teams *string, identifiers *string, labels *string) *stats.GetStatsAssetsPerSeverityPayload
- func NewGetStatsCurrentExposureHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewGetStatsCurrentExposurePayload(team *string, teams *string, minScore *int, maxScore *int, labels *string) *stats.GetStatsCurrentExposurePayload
- func NewGetStatsExposureHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewGetStatsExposurePayload(team *string, teams *string, atDate *string, minScore *int, maxScore *int) *stats.GetStatsExposurePayload
- func NewGetStatsMTTRHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewGetStatsMTTRPayload(team *string, teams *string, minDate *string, maxDate *string, labels *string) *stats.GetStatsMTTRPayload
- type ErrorNamer
- type GetFixedIssuesStatsResponseBody
- type GetOpenIssuesStatsResponseBody
- type GetSizeStatsResponseBody
- type GetStatsAssetsPerSeverityResponseBody
- type GetStatsCurrentExposureResponseBody
- type GetStatsExposureResponseBody
- type GetStatsMTTRResponseBody
- type IssueStatsResponse
- type IssueStatsResponseCollection
- type MountPoint
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeGetFixedIssuesStatsRequest ¶
func DecodeGetFixedIssuesStatsRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeGetFixedIssuesStatsRequest returns a decoder for requests sent to the stats Get fixed issues stats endpoint.
func DecodeGetIssuesStatsRequest ¶
func DecodeGetIssuesStatsRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeGetIssuesStatsRequest returns a decoder for requests sent to the stats Get issues stats endpoint.
func DecodeGetOpenIssuesStatsRequest ¶
func DecodeGetOpenIssuesStatsRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeGetOpenIssuesStatsRequest returns a decoder for requests sent to the stats Get open issues stats endpoint.
func DecodeGetStatsAssetsPerSeverityRequest ¶
func DecodeGetStatsAssetsPerSeverityRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeGetStatsAssetsPerSeverityRequest returns a decoder for requests sent to the stats Get stats assets per severity endpoint.
func DecodeGetStatsCurrentExposureRequest ¶
func DecodeGetStatsCurrentExposureRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeGetStatsCurrentExposureRequest returns a decoder for requests sent to the stats Get stats current exposure endpoint.
func DecodeGetStatsExposureRequest ¶
func DecodeGetStatsExposureRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeGetStatsExposureRequest returns a decoder for requests sent to the stats Get stats exposure endpoint.
func DecodeGetStatsMTTRRequest ¶
func DecodeGetStatsMTTRRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeGetStatsMTTRRequest returns a decoder for requests sent to the stats Get stats MTTR endpoint.
func EncodeGetFixedIssuesStatsResponse ¶
func EncodeGetFixedIssuesStatsResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeGetFixedIssuesStatsResponse returns an encoder for responses returned by the stats Get fixed issues stats endpoint.
func EncodeGetIssuesStatsResponse ¶
func EncodeGetIssuesStatsResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeGetIssuesStatsResponse returns an encoder for responses returned by the stats Get issues stats endpoint.
func EncodeGetOpenIssuesStatsResponse ¶
func EncodeGetOpenIssuesStatsResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeGetOpenIssuesStatsResponse returns an encoder for responses returned by the stats Get open issues stats endpoint.
func EncodeGetSizeStatsResponse ¶
func EncodeGetSizeStatsResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeGetSizeStatsResponse returns an encoder for responses returned by the stats Get size stats endpoint.
func EncodeGetStatsAssetsPerSeverityResponse ¶
func EncodeGetStatsAssetsPerSeverityResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeGetStatsAssetsPerSeverityResponse returns an encoder for responses returned by the stats Get stats assets per severity endpoint.
func EncodeGetStatsCurrentExposureResponse ¶
func EncodeGetStatsCurrentExposureResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeGetStatsCurrentExposureResponse returns an encoder for responses returned by the stats Get stats current exposure endpoint.
func EncodeGetStatsExposureResponse ¶
func EncodeGetStatsExposureResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeGetStatsExposureResponse returns an encoder for responses returned by the stats Get stats exposure endpoint.
func EncodeGetStatsMTTRResponse ¶
func EncodeGetStatsMTTRResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeGetStatsMTTRResponse returns an encoder for responses returned by the stats Get stats MTTR endpoint.
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 MountGetFixedIssuesStatsHandler ¶
MountGetFixedIssuesStatsHandler configures the mux to serve the "stats" service "Get fixed issues stats" endpoint.
func MountGetIssuesStatsHandler ¶
MountGetIssuesStatsHandler configures the mux to serve the "stats" service "Get issues stats" endpoint.
func MountGetOpenIssuesStatsHandler ¶
MountGetOpenIssuesStatsHandler configures the mux to serve the "stats" service "Get open issues stats" endpoint.
func MountGetSizeStatsHandler ¶
MountGetSizeStatsHandler configures the mux to serve the "stats" service "Get size stats" endpoint.
func MountGetStatsAssetsPerSeverityHandler ¶
MountGetStatsAssetsPerSeverityHandler configures the mux to serve the "stats" service "Get stats assets per severity" endpoint.
func MountGetStatsCurrentExposureHandler ¶
MountGetStatsCurrentExposureHandler configures the mux to serve the "stats" service "Get stats current exposure" endpoint.
func MountGetStatsExposureHandler ¶
MountGetStatsExposureHandler configures the mux to serve the "stats" service "Get stats exposure" endpoint.
func MountGetStatsMTTRHandler ¶
MountGetStatsMTTRHandler configures the mux to serve the "stats" service "Get stats MTTR" endpoint.
func NewGetFixedIssuesStatsHandler ¶
func NewGetFixedIssuesStatsHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(err error) goahttp.Statuser, ) http.Handler
NewGetFixedIssuesStatsHandler creates a HTTP handler which loads the HTTP request and calls the "stats" service "Get fixed issues stats" endpoint.
func NewGetFixedIssuesStatsPayload ¶
func NewGetFixedIssuesStatsPayload(team *string, teams *string, minDate *string, maxDate *string, atDate *string, identifiers *string, labels *string) *stats.GetFixedIssuesStatsPayload
NewGetFixedIssuesStatsPayload builds a stats service Get fixed issues stats endpoint payload.
func NewGetIssuesStatsHandler ¶
func NewGetIssuesStatsHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(err error) goahttp.Statuser, ) http.Handler
NewGetIssuesStatsHandler creates a HTTP handler which loads the HTTP request and calls the "stats" service "Get issues stats" endpoint.
func NewGetIssuesStatsPayload ¶
func NewGetIssuesStatsPayload(minDate *string, maxDate *string, minScore *int, maxScore *int) *stats.GetIssuesStatsPayload
NewGetIssuesStatsPayload builds a stats service Get issues stats endpoint payload.
func NewGetOpenIssuesStatsHandler ¶
func NewGetOpenIssuesStatsHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(err error) goahttp.Statuser, ) http.Handler
NewGetOpenIssuesStatsHandler creates a HTTP handler which loads the HTTP request and calls the "stats" service "Get open issues stats" endpoint.
func NewGetOpenIssuesStatsPayload ¶
func NewGetOpenIssuesStatsPayload(team *string, teams *string, minDate *string, maxDate *string, atDate *string, identifiers *string, labels *string) *stats.GetOpenIssuesStatsPayload
NewGetOpenIssuesStatsPayload builds a stats service Get open issues stats endpoint payload.
func NewGetSizeStatsHandler ¶
func NewGetSizeStatsHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(err error) goahttp.Statuser, ) http.Handler
NewGetSizeStatsHandler creates a HTTP handler which loads the HTTP request and calls the "stats" service "Get size stats" endpoint.
func NewGetStatsAssetsPerSeverityHandler ¶
func NewGetStatsAssetsPerSeverityHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(err error) goahttp.Statuser, ) http.Handler
NewGetStatsAssetsPerSeverityHandler creates a HTTP handler which loads the HTTP request and calls the "stats" service "Get stats assets per severity" endpoint.
func NewGetStatsAssetsPerSeverityPayload ¶
func NewGetStatsAssetsPerSeverityPayload(team *string, teams *string, identifiers *string, labels *string) *stats.GetStatsAssetsPerSeverityPayload
NewGetStatsAssetsPerSeverityPayload builds a stats service Get stats assets per severity endpoint payload.
func NewGetStatsCurrentExposureHandler ¶
func NewGetStatsCurrentExposureHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(err error) goahttp.Statuser, ) http.Handler
NewGetStatsCurrentExposureHandler creates a HTTP handler which loads the HTTP request and calls the "stats" service "Get stats current exposure" endpoint.
func NewGetStatsCurrentExposurePayload ¶
func NewGetStatsCurrentExposurePayload(team *string, teams *string, minScore *int, maxScore *int, labels *string) *stats.GetStatsCurrentExposurePayload
NewGetStatsCurrentExposurePayload builds a stats service Get stats current exposure endpoint payload.
func NewGetStatsExposureHandler ¶
func NewGetStatsExposureHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(err error) goahttp.Statuser, ) http.Handler
NewGetStatsExposureHandler creates a HTTP handler which loads the HTTP request and calls the "stats" service "Get stats exposure" endpoint.
func NewGetStatsExposurePayload ¶
func NewGetStatsExposurePayload(team *string, teams *string, atDate *string, minScore *int, maxScore *int) *stats.GetStatsExposurePayload
NewGetStatsExposurePayload builds a stats service Get stats exposure endpoint payload.
func NewGetStatsMTTRHandler ¶
func NewGetStatsMTTRHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(err error) goahttp.Statuser, ) http.Handler
NewGetStatsMTTRHandler creates a HTTP handler which loads the HTTP request and calls the "stats" service "Get stats MTTR" endpoint.
func NewGetStatsMTTRPayload ¶
func NewGetStatsMTTRPayload(team *string, teams *string, minDate *string, maxDate *string, labels *string) *stats.GetStatsMTTRPayload
NewGetStatsMTTRPayload builds a stats service Get stats MTTR endpoint payload.
Types ¶
type ErrorNamer ¶
type ErrorNamer interface {
ErrorName() string
}
ErrorNamer is an interface implemented by generated error structs that exposes the name of the error as defined in the design.
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.
func NewGetFixedIssuesStatsResponseBody ¶
func NewGetFixedIssuesStatsResponseBody(res *statsviews.SeverityView) *GetFixedIssuesStatsResponseBody
NewGetFixedIssuesStatsResponseBody builds the HTTP response body from the result of the "Get fixed issues stats" endpoint of the "stats" service.
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.
func NewGetOpenIssuesStatsResponseBody ¶
func NewGetOpenIssuesStatsResponseBody(res *statsviews.SeverityView) *GetOpenIssuesStatsResponseBody
NewGetOpenIssuesStatsResponseBody builds the HTTP response body from the result of the "Get open issues stats" endpoint of the "stats" service.
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.
func NewGetSizeStatsResponseBody ¶
func NewGetSizeStatsResponseBody(res *statsviews.SizeView) *GetSizeStatsResponseBody
NewGetSizeStatsResponseBody builds the HTTP response body from the result of the "Get size stats" endpoint of the "stats" service.
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.
func NewGetStatsAssetsPerSeverityResponseBody ¶
func NewGetStatsAssetsPerSeverityResponseBody(res *statsviews.SeverityAndTotalView) *GetStatsAssetsPerSeverityResponseBody
NewGetStatsAssetsPerSeverityResponseBody builds the HTTP response body from the result of the "Get stats assets per severity" endpoint of the "stats" service.
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.
func NewGetStatsCurrentExposureResponseBody ¶
func NewGetStatsCurrentExposureResponseBody(res *statsviews.CurrentExposureView) *GetStatsCurrentExposureResponseBody
NewGetStatsCurrentExposureResponseBody builds the HTTP response body from the result of the "Get stats current exposure" endpoint of the "stats" service.
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.
func NewGetStatsExposureResponseBody ¶
func NewGetStatsExposureResponseBody(res *statsviews.ExposureView) *GetStatsExposureResponseBody
NewGetStatsExposureResponseBody builds the HTTP response body from the result of the "Get stats exposure" endpoint of the "stats" service.
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.
func NewGetStatsMTTRResponseBody ¶
func NewGetStatsMTTRResponseBody(res *statsviews.SeverityAndTotalView) *GetStatsMTTRResponseBody
NewGetStatsMTTRResponseBody builds the HTTP response body from the result of the "Get stats MTTR" endpoint of the "stats" service.
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.
type IssueStatsResponseCollection ¶
type IssueStatsResponseCollection []*IssueStatsResponse
IssueStatsResponseCollection is the type of the "stats" service "Get issues stats" endpoint HTTP response body.
func NewIssueStatsResponseCollection ¶
func NewIssueStatsResponseCollection(res statsviews.IssueStatsCollectionView) IssueStatsResponseCollection
NewIssueStatsResponseCollection builds the HTTP response body from the result of the "Get issues stats" endpoint of the "stats" service.
type MountPoint ¶
type MountPoint struct { // Method is the name of the service method served by the mounted HTTP handler. Method string // Verb is the HTTP method used to match requests to the mounted handler. Verb string // Pattern is the HTTP request path pattern used to match requests to the // mounted handler. Pattern string }
MountPoint holds information about the mounted endpoints.
type Server ¶
type Server struct { Mounts []*MountPoint GetSizeStats http.Handler GetOpenIssuesStats http.Handler GetFixedIssuesStats http.Handler GetStatsAssetsPerSeverity http.Handler GetIssuesStats http.Handler GetStatsMTTR http.Handler GetStatsExposure http.Handler GetStatsCurrentExposure http.Handler }
Server lists the stats service endpoint HTTP handlers.
func New ¶
func New( e *stats.Endpoints, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(err error) goahttp.Statuser, ) *Server
New instantiates HTTP handlers for all the stats service endpoints using the provided encoder and decoder. The handlers are mounted on the given mux using the HTTP verb and path defined in the design. errhandler is called whenever a response fails to be encoded. formatter is used to format errors returned by the service methods prior to encoding. Both errhandler and formatter are optional and can be nil.