Documentation
¶
Overview ¶
Package gen provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Package gen provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Package gen provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- func NewCreateAlertRuleRequest(server string, sourceType string, body CreateAlertRuleJSONRequestBody) (*http.Request, error)
- func NewCreateAlertRuleRequestWithBody(server string, sourceType string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteAlertRuleRequest(server string, sourceType string, ruleName string) (*http.Request, error)
- func NewGetAlertRuleRequest(server string, sourceType string, ruleName string) (*http.Request, error)
- func NewGetSpanDetailsForTraceRequest(server string, traceId string, spanId string) (*http.Request, error)
- func NewHandleAlertWebhookRequest(server string, body HandleAlertWebhookJSONRequestBody) (*http.Request, error)
- func NewHandleAlertWebhookRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewHealthRequest(server string) (*http.Request, error)
- func NewQueryAlertsRequest(server string, body QueryAlertsJSONRequestBody) (*http.Request, error)
- func NewQueryAlertsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewQueryIncidentsRequest(server string, body QueryIncidentsJSONRequestBody) (*http.Request, error)
- func NewQueryIncidentsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewQueryLogsRequest(server string, body QueryLogsJSONRequestBody) (*http.Request, error)
- func NewQueryLogsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewQueryMetricsRequest(server string, body QueryMetricsJSONRequestBody) (*http.Request, error)
- func NewQueryMetricsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewQueryRuntimeTopologyRequest(server string, body QueryRuntimeTopologyJSONRequestBody) (*http.Request, error)
- func NewQueryRuntimeTopologyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewQuerySpansForTraceRequest(server string, traceId string, body QuerySpansForTraceJSONRequestBody) (*http.Request, error)
- func NewQuerySpansForTraceRequestWithBody(server string, traceId string, contentType string, body io.Reader) (*http.Request, error)
- func NewQueryTracesRequest(server string, body QueryTracesJSONRequestBody) (*http.Request, error)
- func NewQueryTracesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateAlertRuleRequest(server string, sourceType string, ruleName string, ...) (*http.Request, error)
- func NewUpdateAlertRuleRequestWithBody(server string, sourceType string, ruleName string, contentType string, ...) (*http.Request, error)
- func NewUpdateIncidentRequest(server string, incidentId string, body UpdateIncidentJSONRequestBody) (*http.Request, error)
- func NewUpdateIncidentRequestWithBody(server string, incidentId string, contentType string, body io.Reader) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type AlertRuleRequest
- type AlertRuleRequestConditionOperator
- type AlertRuleRequestSourceMetric
- type AlertRuleRequestSourceType
- type AlertRuleResponse
- type AlertRuleResponseConditionOperator
- type AlertRuleResponseSourceMetric
- type AlertRuleResponseSourceType
- type AlertWebhookRequest
- type AlertWebhookResponse
- type AlertWebhookResponseStatus
- type AlertingRuleSyncResponse
- type AlertingRuleSyncResponseAction
- type AlertingRuleSyncResponseStatus
- type AlertsQueryRequest
- type AlertsQueryRequestSortOrder
- type AlertsQueryResponse
- type AlertsQueryResponseAlertsMetadataAlertRuleConditionOperator
- type AlertsQueryResponseAlertsMetadataAlertRuleSeverity
- type AlertsQueryResponseAlertsMetadataAlertRuleSourceType
- type Client
- func (c *Client) CreateAlertRule(ctx context.Context, sourceType string, body CreateAlertRuleJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAlertRuleWithBody(ctx context.Context, sourceType string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteAlertRule(ctx context.Context, sourceType string, ruleName string, ...) (*http.Response, error)
- func (c *Client) GetAlertRule(ctx context.Context, sourceType string, ruleName string, ...) (*http.Response, error)
- func (c *Client) GetSpanDetailsForTrace(ctx context.Context, traceId string, spanId string, ...) (*http.Response, error)
- func (c *Client) HandleAlertWebhook(ctx context.Context, body HandleAlertWebhookJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) HandleAlertWebhookWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Health(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) QueryAlerts(ctx context.Context, body QueryAlertsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) QueryAlertsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) QueryIncidents(ctx context.Context, body QueryIncidentsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) QueryIncidentsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) QueryLogs(ctx context.Context, body QueryLogsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) QueryLogsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) QueryMetrics(ctx context.Context, body QueryMetricsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) QueryMetricsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) QueryRuntimeTopology(ctx context.Context, body QueryRuntimeTopologyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) QueryRuntimeTopologyWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) QuerySpansForTrace(ctx context.Context, traceId string, body QuerySpansForTraceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) QuerySpansForTraceWithBody(ctx context.Context, traceId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) QueryTraces(ctx context.Context, body QueryTracesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) QueryTracesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateAlertRule(ctx context.Context, sourceType string, ruleName string, ...) (*http.Response, error)
- func (c *Client) UpdateAlertRuleWithBody(ctx context.Context, sourceType string, ruleName string, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateIncident(ctx context.Context, incidentId string, body UpdateIncidentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateIncidentWithBody(ctx context.Context, incidentId string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateAlertRuleWithBodyWithResponse(ctx context.Context, sourceType string, contentType string, body io.Reader, ...) (*CreateAlertRuleResp, error)
- func (c *ClientWithResponses) CreateAlertRuleWithResponse(ctx context.Context, sourceType string, body CreateAlertRuleJSONRequestBody, ...) (*CreateAlertRuleResp, error)
- func (c *ClientWithResponses) DeleteAlertRuleWithResponse(ctx context.Context, sourceType string, ruleName string, ...) (*DeleteAlertRuleResp, error)
- func (c *ClientWithResponses) GetAlertRuleWithResponse(ctx context.Context, sourceType string, ruleName string, ...) (*GetAlertRuleResp, error)
- func (c *ClientWithResponses) GetSpanDetailsForTraceWithResponse(ctx context.Context, traceId string, spanId string, ...) (*GetSpanDetailsForTraceResp, error)
- func (c *ClientWithResponses) HandleAlertWebhookWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*HandleAlertWebhookResp, error)
- func (c *ClientWithResponses) HandleAlertWebhookWithResponse(ctx context.Context, body HandleAlertWebhookJSONRequestBody, ...) (*HandleAlertWebhookResp, error)
- func (c *ClientWithResponses) HealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthResp, error)
- func (c *ClientWithResponses) QueryAlertsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*QueryAlertsResp, error)
- func (c *ClientWithResponses) QueryAlertsWithResponse(ctx context.Context, body QueryAlertsJSONRequestBody, ...) (*QueryAlertsResp, error)
- func (c *ClientWithResponses) QueryIncidentsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*QueryIncidentsResp, error)
- func (c *ClientWithResponses) QueryIncidentsWithResponse(ctx context.Context, body QueryIncidentsJSONRequestBody, ...) (*QueryIncidentsResp, error)
- func (c *ClientWithResponses) QueryLogsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*QueryLogsResp, error)
- func (c *ClientWithResponses) QueryLogsWithResponse(ctx context.Context, body QueryLogsJSONRequestBody, ...) (*QueryLogsResp, error)
- func (c *ClientWithResponses) QueryMetricsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*QueryMetricsResp, error)
- func (c *ClientWithResponses) QueryMetricsWithResponse(ctx context.Context, body QueryMetricsJSONRequestBody, ...) (*QueryMetricsResp, error)
- func (c *ClientWithResponses) QueryRuntimeTopologyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*QueryRuntimeTopologyResp, error)
- func (c *ClientWithResponses) QueryRuntimeTopologyWithResponse(ctx context.Context, body QueryRuntimeTopologyJSONRequestBody, ...) (*QueryRuntimeTopologyResp, error)
- func (c *ClientWithResponses) QuerySpansForTraceWithBodyWithResponse(ctx context.Context, traceId string, contentType string, body io.Reader, ...) (*QuerySpansForTraceResp, error)
- func (c *ClientWithResponses) QuerySpansForTraceWithResponse(ctx context.Context, traceId string, body QuerySpansForTraceJSONRequestBody, ...) (*QuerySpansForTraceResp, error)
- func (c *ClientWithResponses) QueryTracesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*QueryTracesResp, error)
- func (c *ClientWithResponses) QueryTracesWithResponse(ctx context.Context, body QueryTracesJSONRequestBody, ...) (*QueryTracesResp, error)
- func (c *ClientWithResponses) UpdateAlertRuleWithBodyWithResponse(ctx context.Context, sourceType string, ruleName string, contentType string, ...) (*UpdateAlertRuleResp, error)
- func (c *ClientWithResponses) UpdateAlertRuleWithResponse(ctx context.Context, sourceType string, ruleName string, ...) (*UpdateAlertRuleResp, error)
- func (c *ClientWithResponses) UpdateIncidentWithBodyWithResponse(ctx context.Context, incidentId string, contentType string, body io.Reader, ...) (*UpdateIncidentResp, error)
- func (c *ClientWithResponses) UpdateIncidentWithResponse(ctx context.Context, incidentId string, body UpdateIncidentJSONRequestBody, ...) (*UpdateIncidentResp, error)
- type ClientWithResponsesInterface
- type ComponentLogEntry
- type ComponentSearchScope
- type CreateAlertRule201JSONResponse
- type CreateAlertRule400JSONResponse
- type CreateAlertRule409JSONResponse
- type CreateAlertRule500JSONResponse
- type CreateAlertRuleJSONRequestBody
- type CreateAlertRuleRequestObject
- type CreateAlertRuleResp
- type CreateAlertRuleResponseObject
- type DeleteAlertRule200JSONResponse
- type DeleteAlertRule400JSONResponse
- type DeleteAlertRule404JSONResponse
- type DeleteAlertRule500JSONResponse
- type DeleteAlertRuleRequestObject
- type DeleteAlertRuleResp
- type DeleteAlertRuleResponseObject
- type ErrorResponse
- type ErrorResponseTitle
- type GetAlertRule200JSONResponse
- type GetAlertRule400JSONResponse
- type GetAlertRule404JSONResponse
- type GetAlertRule500JSONResponse
- type GetAlertRuleRequestObject
- type GetAlertRuleResp
- type GetAlertRuleResponseObject
- type GetSpanDetailsForTrace200JSONResponse
- type GetSpanDetailsForTrace400JSONResponse
- type GetSpanDetailsForTrace401JSONResponse
- type GetSpanDetailsForTrace403JSONResponse
- type GetSpanDetailsForTrace500JSONResponse
- type GetSpanDetailsForTraceRequestObject
- type GetSpanDetailsForTraceResp
- type GetSpanDetailsForTraceResponseObject
- type HandleAlertWebhook200JSONResponse
- type HandleAlertWebhook400JSONResponse
- type HandleAlertWebhook500JSONResponse
- type HandleAlertWebhookJSONRequestBody
- type HandleAlertWebhookRequestObject
- type HandleAlertWebhookResp
- type HandleAlertWebhookResponseObject
- type Health200JSONResponse
- type Health503JSONResponse
- type HealthRequestObject
- type HealthResp
- type HealthResponseObject
- type HttpMetricsTimeSeries
- type HttpRequestDoer
- type IncidentPutRequest
- type IncidentPutRequestStatus
- type IncidentPutResponse
- type IncidentPutResponseStatus
- type IncidentsQueryRequest
- type IncidentsQueryRequestSortOrder
- type IncidentsQueryResponse
- type IncidentsQueryResponseIncidentsStatus
- type InvalidParamFormatError
- type LogsQueryRequest
- type LogsQueryRequestLogLevels
- type LogsQueryRequestSortOrder
- type LogsQueryRequest_SearchScope
- func (t LogsQueryRequest_SearchScope) AsComponentSearchScope() (ComponentSearchScope, error)
- func (t LogsQueryRequest_SearchScope) AsWorkflowSearchScope() (WorkflowSearchScope, error)
- func (t *LogsQueryRequest_SearchScope) FromComponentSearchScope(v ComponentSearchScope) error
- func (t *LogsQueryRequest_SearchScope) FromWorkflowSearchScope(v WorkflowSearchScope) error
- func (t LogsQueryRequest_SearchScope) MarshalJSON() ([]byte, error)
- func (t *LogsQueryRequest_SearchScope) MergeComponentSearchScope(v ComponentSearchScope) error
- func (t *LogsQueryRequest_SearchScope) MergeWorkflowSearchScope(v WorkflowSearchScope) error
- func (t *LogsQueryRequest_SearchScope) UnmarshalJSON(b []byte) error
- type LogsQueryResponse
- type LogsQueryResponseLogs0
- type LogsQueryResponseLogs1
- type LogsQueryResponse_Logs
- func (t LogsQueryResponse_Logs) AsLogsQueryResponseLogs0() (LogsQueryResponseLogs0, error)
- func (t LogsQueryResponse_Logs) AsLogsQueryResponseLogs1() (LogsQueryResponseLogs1, error)
- func (t *LogsQueryResponse_Logs) FromLogsQueryResponseLogs0(v LogsQueryResponseLogs0) error
- func (t *LogsQueryResponse_Logs) FromLogsQueryResponseLogs1(v LogsQueryResponseLogs1) error
- func (t LogsQueryResponse_Logs) MarshalJSON() ([]byte, error)
- func (t *LogsQueryResponse_Logs) MergeLogsQueryResponseLogs0(v LogsQueryResponseLogs0) error
- func (t *LogsQueryResponse_Logs) MergeLogsQueryResponseLogs1(v LogsQueryResponseLogs1) error
- func (t *LogsQueryResponse_Logs) UnmarshalJSON(b []byte) error
- type MetricsQueryRequest
- type MetricsQueryRequestMetric
- type MetricsQueryResponse
- func (t MetricsQueryResponse) AsHttpMetricsTimeSeries() (HttpMetricsTimeSeries, error)
- func (t MetricsQueryResponse) AsResourceMetricsTimeSeries() (ResourceMetricsTimeSeries, error)
- func (t *MetricsQueryResponse) FromHttpMetricsTimeSeries(v HttpMetricsTimeSeries) error
- func (t *MetricsQueryResponse) FromResourceMetricsTimeSeries(v ResourceMetricsTimeSeries) error
- func (t MetricsQueryResponse) MarshalJSON() ([]byte, error)
- func (t *MetricsQueryResponse) MergeHttpMetricsTimeSeries(v HttpMetricsTimeSeries) error
- func (t *MetricsQueryResponse) MergeResourceMetricsTimeSeries(v ResourceMetricsTimeSeries) error
- func (t *MetricsQueryResponse) UnmarshalJSON(b []byte) error
- type MetricsTimeSeriesItem
- type MiddlewareFunc
- type QueryAlerts200JSONResponse
- type QueryAlerts400JSONResponse
- type QueryAlerts401JSONResponse
- type QueryAlerts403JSONResponse
- type QueryAlerts500JSONResponse
- type QueryAlertsJSONRequestBody
- type QueryAlertsRequestObject
- type QueryAlertsResp
- type QueryAlertsResponseObject
- type QueryIncidents200JSONResponse
- type QueryIncidents400JSONResponse
- type QueryIncidents401JSONResponse
- type QueryIncidents403JSONResponse
- type QueryIncidents500JSONResponse
- type QueryIncidentsJSONRequestBody
- type QueryIncidentsRequestObject
- type QueryIncidentsResp
- type QueryIncidentsResponseObject
- type QueryLogs200JSONResponse
- type QueryLogs400JSONResponse
- type QueryLogs401JSONResponse
- type QueryLogs403JSONResponse
- type QueryLogs500JSONResponse
- type QueryLogsJSONRequestBody
- type QueryLogsRequestObject
- type QueryLogsResp
- type QueryLogsResponseObject
- type QueryMetrics200JSONResponse
- type QueryMetrics400JSONResponse
- type QueryMetrics401JSONResponse
- type QueryMetrics403JSONResponse
- type QueryMetrics500JSONResponse
- type QueryMetricsJSONRequestBody
- type QueryMetricsRequestObject
- type QueryMetricsResp
- type QueryMetricsResponseObject
- type QueryRuntimeTopology200JSONResponse
- type QueryRuntimeTopology400JSONResponse
- type QueryRuntimeTopology401JSONResponse
- type QueryRuntimeTopology403JSONResponse
- type QueryRuntimeTopology500JSONResponse
- type QueryRuntimeTopologyJSONRequestBody
- type QueryRuntimeTopologyRequestObject
- type QueryRuntimeTopologyResp
- type QueryRuntimeTopologyResponseObject
- type QuerySpansForTrace200JSONResponse
- type QuerySpansForTrace400JSONResponse
- type QuerySpansForTrace401JSONResponse
- type QuerySpansForTrace403JSONResponse
- type QuerySpansForTrace500JSONResponse
- type QuerySpansForTraceJSONRequestBody
- type QuerySpansForTraceRequestObject
- type QuerySpansForTraceResp
- type QuerySpansForTraceResponseObject
- type QueryTraces200JSONResponse
- type QueryTraces400JSONResponse
- type QueryTraces401JSONResponse
- type QueryTraces403JSONResponse
- type QueryTraces500JSONResponse
- type QueryTracesJSONRequestBody
- type QueryTracesRequestObject
- type QueryTracesResp
- type QueryTracesResponseObject
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type ResourceMetricsTimeSeries
- type RuntimeTopologyEdge
- type RuntimeTopologyEdgeProtocol
- type RuntimeTopologyMetrics
- type RuntimeTopologyNode
- type RuntimeTopologyNodeKind
- type RuntimeTopologyNodeRef
- type RuntimeTopologyNodeRefKind
- type RuntimeTopologyRequest
- type RuntimeTopologyResponse
- type RuntimeTopologySearchScope
- type RuntimeTopologySummary
- type ServeMux
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) CreateAlertRule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteAlertRule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAlertRule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSpanDetailsForTrace(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) HandleAlertWebhook(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Health(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) QueryAlerts(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) QueryIncidents(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) QueryLogs(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) QueryMetrics(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) QueryRuntimeTopology(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) QuerySpansForTrace(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) QueryTraces(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateAlertRule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateIncident(w http.ResponseWriter, r *http.Request)
- type StdHTTPServerOptions
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type TooManyValuesForParamError
- type TraceSpanDetailsResponse
- type TraceSpanDetailsResponseStatus
- type TraceSpansQueryResponse
- type TraceSpansQueryResponseSpansStatus
- type TracesQueryRequest
- type TracesQueryRequestSortOrder
- type TracesQueryResponse
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type UpdateAlertRule200JSONResponse
- type UpdateAlertRule400JSONResponse
- type UpdateAlertRule500JSONResponse
- type UpdateAlertRuleJSONRequestBody
- type UpdateAlertRuleRequestObject
- type UpdateAlertRuleResp
- type UpdateAlertRuleResponseObject
- type UpdateIncident200JSONResponse
- type UpdateIncident400JSONResponse
- type UpdateIncident401JSONResponse
- type UpdateIncident403JSONResponse
- type UpdateIncident404JSONResponse
- type UpdateIncident500JSONResponse
- type UpdateIncidentJSONRequestBody
- type UpdateIncidentRequestObject
- type UpdateIncidentResp
- type UpdateIncidentResponseObject
- type WorkflowLogEntry
- type WorkflowSearchScope
Constants ¶
const (
BearerAuthScopes = "BearerAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func NewCreateAlertRuleRequest ¶
func NewCreateAlertRuleRequest(server string, sourceType string, body CreateAlertRuleJSONRequestBody) (*http.Request, error)
NewCreateAlertRuleRequest calls the generic CreateAlertRule builder with application/json body
func NewCreateAlertRuleRequestWithBody ¶
func NewCreateAlertRuleRequestWithBody(server string, sourceType string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAlertRuleRequestWithBody generates requests for CreateAlertRule with any type of body
func NewDeleteAlertRuleRequest ¶
func NewDeleteAlertRuleRequest(server string, sourceType string, ruleName string) (*http.Request, error)
NewDeleteAlertRuleRequest generates requests for DeleteAlertRule
func NewGetAlertRuleRequest ¶
func NewGetAlertRuleRequest(server string, sourceType string, ruleName string) (*http.Request, error)
NewGetAlertRuleRequest generates requests for GetAlertRule
func NewGetSpanDetailsForTraceRequest ¶
func NewGetSpanDetailsForTraceRequest(server string, traceId string, spanId string) (*http.Request, error)
NewGetSpanDetailsForTraceRequest generates requests for GetSpanDetailsForTrace
func NewHandleAlertWebhookRequest ¶
func NewHandleAlertWebhookRequest(server string, body HandleAlertWebhookJSONRequestBody) (*http.Request, error)
NewHandleAlertWebhookRequest calls the generic HandleAlertWebhook builder with application/json body
func NewHandleAlertWebhookRequestWithBody ¶
func NewHandleAlertWebhookRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewHandleAlertWebhookRequestWithBody generates requests for HandleAlertWebhook with any type of body
func NewHealthRequest ¶
NewHealthRequest generates requests for Health
func NewQueryAlertsRequest ¶ added in v1.0.0
func NewQueryAlertsRequest(server string, body QueryAlertsJSONRequestBody) (*http.Request, error)
NewQueryAlertsRequest calls the generic QueryAlerts builder with application/json body
func NewQueryAlertsRequestWithBody ¶ added in v1.0.0
func NewQueryAlertsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewQueryAlertsRequestWithBody generates requests for QueryAlerts with any type of body
func NewQueryIncidentsRequest ¶ added in v1.0.0
func NewQueryIncidentsRequest(server string, body QueryIncidentsJSONRequestBody) (*http.Request, error)
NewQueryIncidentsRequest calls the generic QueryIncidents builder with application/json body
func NewQueryIncidentsRequestWithBody ¶ added in v1.0.0
func NewQueryIncidentsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewQueryIncidentsRequestWithBody generates requests for QueryIncidents with any type of body
func NewQueryLogsRequest ¶
func NewQueryLogsRequest(server string, body QueryLogsJSONRequestBody) (*http.Request, error)
NewQueryLogsRequest calls the generic QueryLogs builder with application/json body
func NewQueryLogsRequestWithBody ¶
func NewQueryLogsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewQueryLogsRequestWithBody generates requests for QueryLogs with any type of body
func NewQueryMetricsRequest ¶
func NewQueryMetricsRequest(server string, body QueryMetricsJSONRequestBody) (*http.Request, error)
NewQueryMetricsRequest calls the generic QueryMetrics builder with application/json body
func NewQueryMetricsRequestWithBody ¶
func NewQueryMetricsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewQueryMetricsRequestWithBody generates requests for QueryMetrics with any type of body
func NewQueryRuntimeTopologyRequest ¶ added in v1.1.0
func NewQueryRuntimeTopologyRequest(server string, body QueryRuntimeTopologyJSONRequestBody) (*http.Request, error)
NewQueryRuntimeTopologyRequest calls the generic QueryRuntimeTopology builder with application/json body
func NewQueryRuntimeTopologyRequestWithBody ¶ added in v1.1.0
func NewQueryRuntimeTopologyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewQueryRuntimeTopologyRequestWithBody generates requests for QueryRuntimeTopology with any type of body
func NewQuerySpansForTraceRequest ¶
func NewQuerySpansForTraceRequest(server string, traceId string, body QuerySpansForTraceJSONRequestBody) (*http.Request, error)
NewQuerySpansForTraceRequest calls the generic QuerySpansForTrace builder with application/json body
func NewQuerySpansForTraceRequestWithBody ¶
func NewQuerySpansForTraceRequestWithBody(server string, traceId string, contentType string, body io.Reader) (*http.Request, error)
NewQuerySpansForTraceRequestWithBody generates requests for QuerySpansForTrace with any type of body
func NewQueryTracesRequest ¶
func NewQueryTracesRequest(server string, body QueryTracesJSONRequestBody) (*http.Request, error)
NewQueryTracesRequest calls the generic QueryTraces builder with application/json body
func NewQueryTracesRequestWithBody ¶
func NewQueryTracesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewQueryTracesRequestWithBody generates requests for QueryTraces with any type of body
func NewUpdateAlertRuleRequest ¶
func NewUpdateAlertRuleRequest(server string, sourceType string, ruleName string, body UpdateAlertRuleJSONRequestBody) (*http.Request, error)
NewUpdateAlertRuleRequest calls the generic UpdateAlertRule builder with application/json body
func NewUpdateAlertRuleRequestWithBody ¶
func NewUpdateAlertRuleRequestWithBody(server string, sourceType string, ruleName string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateAlertRuleRequestWithBody generates requests for UpdateAlertRule with any type of body
func NewUpdateIncidentRequest ¶ added in v1.0.0
func NewUpdateIncidentRequest(server string, incidentId string, body UpdateIncidentJSONRequestBody) (*http.Request, error)
NewUpdateIncidentRequest calls the generic UpdateIncident builder with application/json body
Types ¶
type AlertRuleRequest ¶
type AlertRuleRequest struct {
Condition struct {
// Enabled Whether the alert rule is enabled
Enabled bool `json:"enabled"`
// Interval The interval of time to query for the alert rule
Interval string `json:"interval"`
// Operator The operator to use for the alert rule
Operator AlertRuleRequestConditionOperator `json:"operator"`
// Threshold The threshold value to use for the alert rule
Threshold float32 `json:"threshold"`
// Window The window of time to query for the alert rule
Window string `json:"window"`
} `json:"condition"`
Metadata struct {
// ComponentUid The OpenChoreo component UID to query
ComponentUid openapi_types.UUID `json:"componentUid"`
// EnvironmentUid The OpenChoreo environment UID to query
EnvironmentUid openapi_types.UUID `json:"environmentUid"`
// Name The name of the alert rule
Name string `json:"name"`
// Namespace The namespace of the alert rule CR
Namespace string `json:"namespace"`
// ProjectUid The OpenChoreo project UID to query
ProjectUid openapi_types.UUID `json:"projectUid"`
} `json:"metadata"`
Source struct {
// Metric The metric to query for metric based alerts
Metric *AlertRuleRequestSourceMetric `json:"metric,omitempty"`
// Query The query to execute for log based alerts
Query *string `json:"query,omitempty"`
// Type The type of the source
Type AlertRuleRequestSourceType `json:"type"`
} `json:"source"`
}
AlertRuleRequest defines model for AlertRuleRequest.
type AlertRuleRequestConditionOperator ¶
type AlertRuleRequestConditionOperator string
AlertRuleRequestConditionOperator The operator to use for the alert rule
const ( AlertRuleRequestConditionOperatorEq AlertRuleRequestConditionOperator = "eq" AlertRuleRequestConditionOperatorGt AlertRuleRequestConditionOperator = "gt" AlertRuleRequestConditionOperatorGte AlertRuleRequestConditionOperator = "gte" AlertRuleRequestConditionOperatorLt AlertRuleRequestConditionOperator = "lt" AlertRuleRequestConditionOperatorLte AlertRuleRequestConditionOperator = "lte" AlertRuleRequestConditionOperatorNeq AlertRuleRequestConditionOperator = "neq" )
Defines values for AlertRuleRequestConditionOperator.
type AlertRuleRequestSourceMetric ¶
type AlertRuleRequestSourceMetric string
AlertRuleRequestSourceMetric The metric to query for metric based alerts
const ( AlertRuleRequestSourceMetricBudget AlertRuleRequestSourceMetric = "budget" AlertRuleRequestSourceMetricCpuUsage AlertRuleRequestSourceMetric = "cpu_usage" AlertRuleRequestSourceMetricMemoryUsage AlertRuleRequestSourceMetric = "memory_usage" )
Defines values for AlertRuleRequestSourceMetric.
type AlertRuleRequestSourceType ¶
type AlertRuleRequestSourceType string
AlertRuleRequestSourceType The type of the source
const ( AlertRuleRequestSourceTypeBudget AlertRuleRequestSourceType = "budget" AlertRuleRequestSourceTypeLog AlertRuleRequestSourceType = "log" AlertRuleRequestSourceTypeMetric AlertRuleRequestSourceType = "metric" )
Defines values for AlertRuleRequestSourceType.
type AlertRuleResponse ¶
type AlertRuleResponse struct {
Condition *struct {
// Enabled Whether the alert rule is enabled
Enabled *bool `json:"enabled,omitempty"`
// Interval The interval of time to query for the alert rule
Interval *string `json:"interval,omitempty"`
// Operator The operator to use for the alert rule
Operator *AlertRuleResponseConditionOperator `json:"operator,omitempty"`
// Threshold The threshold value to use for the alert rule
Threshold *float32 `json:"threshold,omitempty"`
// Window The window of time to query for the alert rule
Window *string `json:"window,omitempty"`
} `json:"condition,omitempty"`
Metadata *struct {
// ComponentUid The OpenChoreo component UID to query
ComponentUid *openapi_types.UUID `json:"componentUid,omitempty"`
// EnvironmentUid The OpenChoreo environment UID to query
EnvironmentUid *openapi_types.UUID `json:"environmentUid,omitempty"`
// Name The name of the alert rule
Name *string `json:"name,omitempty"`
// Namespace The namespace of the alert rule CR
Namespace *string `json:"namespace,omitempty"`
// ProjectUid The OpenChoreo project UID to query
ProjectUid *openapi_types.UUID `json:"projectUid,omitempty"`
} `json:"metadata,omitempty"`
Source *struct {
// Metric The metric to query for metric based alerts
Metric *AlertRuleResponseSourceMetric `json:"metric,omitempty"`
// Query The query to execute for log based alerts
Query *string `json:"query,omitempty"`
// Type The type of the source
Type *AlertRuleResponseSourceType `json:"type,omitempty"`
} `json:"source,omitempty"`
}
AlertRuleResponse defines model for AlertRuleResponse.
type AlertRuleResponseConditionOperator ¶ added in v1.0.0
type AlertRuleResponseConditionOperator string
AlertRuleResponseConditionOperator The operator to use for the alert rule
const ( AlertRuleResponseConditionOperatorEq AlertRuleResponseConditionOperator = "eq" AlertRuleResponseConditionOperatorGt AlertRuleResponseConditionOperator = "gt" AlertRuleResponseConditionOperatorGte AlertRuleResponseConditionOperator = "gte" AlertRuleResponseConditionOperatorLt AlertRuleResponseConditionOperator = "lt" AlertRuleResponseConditionOperatorLte AlertRuleResponseConditionOperator = "lte" AlertRuleResponseConditionOperatorNeq AlertRuleResponseConditionOperator = "neq" )
Defines values for AlertRuleResponseConditionOperator.
type AlertRuleResponseSourceMetric ¶ added in v1.0.0
type AlertRuleResponseSourceMetric string
AlertRuleResponseSourceMetric The metric to query for metric based alerts
const ( AlertRuleResponseSourceMetricBudget AlertRuleResponseSourceMetric = "budget" AlertRuleResponseSourceMetricCpuUsage AlertRuleResponseSourceMetric = "cpu_usage" AlertRuleResponseSourceMetricMemoryUsage AlertRuleResponseSourceMetric = "memory_usage" )
Defines values for AlertRuleResponseSourceMetric.
type AlertRuleResponseSourceType ¶ added in v1.0.0
type AlertRuleResponseSourceType string
AlertRuleResponseSourceType The type of the source
const ( AlertRuleResponseSourceTypeBudget AlertRuleResponseSourceType = "budget" AlertRuleResponseSourceTypeLog AlertRuleResponseSourceType = "log" AlertRuleResponseSourceTypeMetric AlertRuleResponseSourceType = "metric" )
Defines values for AlertRuleResponseSourceType.
type AlertWebhookRequest ¶
type AlertWebhookRequest struct {
// AlertTimestamp The timestamp of the alert
AlertTimestamp *time.Time `json:"alertTimestamp,omitempty"`
// AlertValue The value of the alert
AlertValue *float32 `json:"alertValue,omitempty"`
// RuleName The name of the alert rule
RuleName *string `json:"ruleName,omitempty"`
// RuleNamespace The namespace of the alert rule
RuleNamespace *string `json:"ruleNamespace,omitempty"`
}
AlertWebhookRequest defines model for AlertWebhookRequest.
type AlertWebhookResponse ¶
type AlertWebhookResponse struct {
// Message The message of the alert webhook
Message *string `json:"message,omitempty"`
// Status The status of the alert webhook
Status *AlertWebhookResponseStatus `json:"status,omitempty"`
}
AlertWebhookResponse defines model for AlertWebhookResponse.
type AlertWebhookResponseStatus ¶
type AlertWebhookResponseStatus string
AlertWebhookResponseStatus The status of the alert webhook
const ( AlertWebhookResponseStatusError AlertWebhookResponseStatus = "error" AlertWebhookResponseStatusSuccess AlertWebhookResponseStatus = "success" )
Defines values for AlertWebhookResponseStatus.
type AlertingRuleSyncResponse ¶
type AlertingRuleSyncResponse struct {
// Action The action taken on the alert rule
Action *AlertingRuleSyncResponseAction `json:"action,omitempty"`
// LastSyncedAt The timestamp of the last sync
LastSyncedAt *string `json:"lastSyncedAt,omitempty"`
// RuleBackendId The backend ID (UID from observability backend) of the alert rule
RuleBackendId *string `json:"ruleBackendId,omitempty"`
// RuleLogicalId The logical ID (name) of the alert rule
RuleLogicalId *string `json:"ruleLogicalId,omitempty"`
// Status The status of the alert rule
Status *AlertingRuleSyncResponseStatus `json:"status,omitempty"`
}
AlertingRuleSyncResponse defines model for AlertingRuleSyncResponse.
type AlertingRuleSyncResponseAction ¶
type AlertingRuleSyncResponseAction string
AlertingRuleSyncResponseAction The action taken on the alert rule
const ( Created AlertingRuleSyncResponseAction = "created" Deleted AlertingRuleSyncResponseAction = "deleted" Unchanged AlertingRuleSyncResponseAction = "unchanged" Updated AlertingRuleSyncResponseAction = "updated" )
Defines values for AlertingRuleSyncResponseAction.
type AlertingRuleSyncResponseStatus ¶
type AlertingRuleSyncResponseStatus string
AlertingRuleSyncResponseStatus The status of the alert rule
const ( Failed AlertingRuleSyncResponseStatus = "failed" Synced AlertingRuleSyncResponseStatus = "synced" )
Defines values for AlertingRuleSyncResponseStatus.
type AlertsQueryRequest ¶ added in v1.0.0
type AlertsQueryRequest struct {
// EndTime The end time of the query
EndTime time.Time `json:"endTime"`
// Limit The maximum number of items to return
Limit *int `json:"limit,omitempty"`
SearchScope ComponentSearchScope `json:"searchScope"`
// SortOrder The sort order of the query
SortOrder *AlertsQueryRequestSortOrder `json:"sortOrder,omitempty"`
// StartTime The start time of the query
StartTime time.Time `json:"startTime"`
}
AlertsQueryRequest defines model for AlertsQueryRequest.
type AlertsQueryRequestSortOrder ¶ added in v1.0.0
type AlertsQueryRequestSortOrder string
AlertsQueryRequestSortOrder The sort order of the query
const ( AlertsQueryRequestSortOrderAsc AlertsQueryRequestSortOrder = "asc" AlertsQueryRequestSortOrderDesc AlertsQueryRequestSortOrder = "desc" )
Defines values for AlertsQueryRequestSortOrder.
type AlertsQueryResponse ¶ added in v1.0.0
type AlertsQueryResponse struct {
// Alerts The list of alerts
Alerts *[]struct {
// AlertId The alert ID
AlertId *string `json:"alertId,omitempty"`
// AlertValue The value of the alert
AlertValue *string `json:"alertValue,omitempty"`
// IncidentEnabled Whether the alert rule is configured to trigger incidents when fired
IncidentEnabled *bool `json:"incidentEnabled,omitempty"`
Metadata *struct {
AlertRule *struct {
// Condition The condition configuration of the alert rule
Condition *struct {
// Interval The evaluation interval (e.g. "1m", "5m")
Interval *string `json:"interval,omitempty"`
// Operator The comparison operator used for evaluation
Operator *AlertsQueryResponseAlertsMetadataAlertRuleConditionOperator `json:"operator,omitempty"`
// Threshold The threshold value that triggers the alert
Threshold *float32 `json:"threshold,omitempty"`
// Window The time window for aggregation (e.g. "5m", "1h")
Window *string `json:"window,omitempty"`
} `json:"condition,omitempty"`
// Description The description of the alert rule
Description *string `json:"description,omitempty"`
// Name The name of the alert rule
Name *string `json:"name,omitempty"`
// Severity The severity of the alert rule
Severity *AlertsQueryResponseAlertsMetadataAlertRuleSeverity `json:"severity,omitempty"`
// Source The source configuration of the alert rule
Source *struct {
// Metric The metric used for metric-based alerts
Metric *string `json:"metric,omitempty"`
// Query The query used for log-based alerts
Query *string `json:"query,omitempty"`
// Type The type of the alert source
Type *AlertsQueryResponseAlertsMetadataAlertRuleSourceType `json:"type,omitempty"`
} `json:"source,omitempty"`
} `json:"alertRule,omitempty"`
Labels *struct {
// ComponentName The name of the component
ComponentName *string `json:"componentName,omitempty"`
// ComponentUid The UID of the component
ComponentUid *openapi_types.UUID `json:"componentUid,omitempty"`
// EnvironmentName The name of the environment
EnvironmentName *string `json:"environmentName,omitempty"`
// EnvironmentUid The UID of the environment
EnvironmentUid *openapi_types.UUID `json:"environmentUid,omitempty"`
// NamespaceName The name of the namespace
NamespaceName *string `json:"namespaceName,omitempty"`
// ProjectName The name of the project
ProjectName *string `json:"projectName,omitempty"`
// ProjectUid The UID of the project
ProjectUid *openapi_types.UUID `json:"projectUid,omitempty"`
} `json:"labels,omitempty"`
} `json:"metadata,omitempty"`
// NotificationChannels The notification channels of the alert. Empty if failed to notify.
NotificationChannels *[]string `json:"notificationChannels,omitempty"`
// Timestamp The timestamp of the alert
Timestamp *time.Time `json:"timestamp,omitempty"`
} `json:"alerts,omitempty"`
// TookMs The time taken to query the alerts in milliseconds
TookMs *int `json:"tookMs,omitempty"`
// Total The total number of alerts
Total *int `json:"total,omitempty"`
}
AlertsQueryResponse defines model for AlertsQueryResponse.
type AlertsQueryResponseAlertsMetadataAlertRuleConditionOperator ¶ added in v1.0.0
type AlertsQueryResponseAlertsMetadataAlertRuleConditionOperator string
AlertsQueryResponseAlertsMetadataAlertRuleConditionOperator The comparison operator used for evaluation
const ( Eq AlertsQueryResponseAlertsMetadataAlertRuleConditionOperator = "eq" Gt AlertsQueryResponseAlertsMetadataAlertRuleConditionOperator = "gt" Gte AlertsQueryResponseAlertsMetadataAlertRuleConditionOperator = "gte" Lt AlertsQueryResponseAlertsMetadataAlertRuleConditionOperator = "lt" Lte AlertsQueryResponseAlertsMetadataAlertRuleConditionOperator = "lte" Neq AlertsQueryResponseAlertsMetadataAlertRuleConditionOperator = "neq" )
Defines values for AlertsQueryResponseAlertsMetadataAlertRuleConditionOperator.
type AlertsQueryResponseAlertsMetadataAlertRuleSeverity ¶ added in v1.0.0
type AlertsQueryResponseAlertsMetadataAlertRuleSeverity string
AlertsQueryResponseAlertsMetadataAlertRuleSeverity The severity of the alert rule
const ( Critical AlertsQueryResponseAlertsMetadataAlertRuleSeverity = "critical" Info AlertsQueryResponseAlertsMetadataAlertRuleSeverity = "info" Warning AlertsQueryResponseAlertsMetadataAlertRuleSeverity = "warning" )
Defines values for AlertsQueryResponseAlertsMetadataAlertRuleSeverity.
type AlertsQueryResponseAlertsMetadataAlertRuleSourceType ¶ added in v1.0.0
type AlertsQueryResponseAlertsMetadataAlertRuleSourceType string
AlertsQueryResponseAlertsMetadataAlertRuleSourceType The type of the alert source
const ( Budget AlertsQueryResponseAlertsMetadataAlertRuleSourceType = "budget" Log AlertsQueryResponseAlertsMetadataAlertRuleSourceType = "log" Metric AlertsQueryResponseAlertsMetadataAlertRuleSourceType = "metric" )
Defines values for AlertsQueryResponseAlertsMetadataAlertRuleSourceType.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CreateAlertRule ¶
func (c *Client) CreateAlertRule(ctx context.Context, sourceType string, body CreateAlertRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateAlertRuleWithBody ¶
func (*Client) DeleteAlertRule ¶
func (*Client) GetAlertRule ¶
func (*Client) GetSpanDetailsForTrace ¶
func (*Client) HandleAlertWebhook ¶
func (c *Client) HandleAlertWebhook(ctx context.Context, body HandleAlertWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) HandleAlertWebhookWithBody ¶
func (*Client) QueryAlerts ¶ added in v1.0.0
func (c *Client) QueryAlerts(ctx context.Context, body QueryAlertsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) QueryAlertsWithBody ¶ added in v1.0.0
func (*Client) QueryIncidents ¶ added in v1.0.0
func (c *Client) QueryIncidents(ctx context.Context, body QueryIncidentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) QueryIncidentsWithBody ¶ added in v1.0.0
func (*Client) QueryLogs ¶
func (c *Client) QueryLogs(ctx context.Context, body QueryLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) QueryLogsWithBody ¶
func (*Client) QueryMetrics ¶
func (c *Client) QueryMetrics(ctx context.Context, body QueryMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) QueryMetricsWithBody ¶
func (*Client) QueryRuntimeTopology ¶ added in v1.1.0
func (c *Client) QueryRuntimeTopology(ctx context.Context, body QueryRuntimeTopologyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) QueryRuntimeTopologyWithBody ¶ added in v1.1.0
func (*Client) QuerySpansForTrace ¶
func (c *Client) QuerySpansForTrace(ctx context.Context, traceId string, body QuerySpansForTraceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) QuerySpansForTraceWithBody ¶
func (*Client) QueryTraces ¶
func (c *Client) QueryTraces(ctx context.Context, body QueryTracesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) QueryTracesWithBody ¶
func (*Client) UpdateAlertRule ¶
func (c *Client) UpdateAlertRule(ctx context.Context, sourceType string, ruleName string, body UpdateAlertRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateAlertRuleWithBody ¶
func (*Client) UpdateIncident ¶ added in v1.0.0
func (c *Client) UpdateIncident(ctx context.Context, incidentId string, body UpdateIncidentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// QueryLogsWithBody request with any body
QueryLogsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
QueryLogs(ctx context.Context, body QueryLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// QueryMetricsWithBody request with any body
QueryMetricsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
QueryMetrics(ctx context.Context, body QueryMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// QueryAlertsWithBody request with any body
QueryAlertsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
QueryAlerts(ctx context.Context, body QueryAlertsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAlertRuleWithBody request with any body
CreateAlertRuleWithBody(ctx context.Context, sourceType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAlertRule(ctx context.Context, sourceType string, body CreateAlertRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteAlertRule request
DeleteAlertRule(ctx context.Context, sourceType string, ruleName string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAlertRule request
GetAlertRule(ctx context.Context, sourceType string, ruleName string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateAlertRuleWithBody request with any body
UpdateAlertRuleWithBody(ctx context.Context, sourceType string, ruleName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateAlertRule(ctx context.Context, sourceType string, ruleName string, body UpdateAlertRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// HandleAlertWebhookWithBody request with any body
HandleAlertWebhookWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
HandleAlertWebhook(ctx context.Context, body HandleAlertWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// QueryIncidentsWithBody request with any body
QueryIncidentsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
QueryIncidents(ctx context.Context, body QueryIncidentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateIncidentWithBody request with any body
UpdateIncidentWithBody(ctx context.Context, incidentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateIncident(ctx context.Context, incidentId string, body UpdateIncidentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// QueryRuntimeTopologyWithBody request with any body
QueryRuntimeTopologyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
QueryRuntimeTopology(ctx context.Context, body QueryRuntimeTopologyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// QueryTracesWithBody request with any body
QueryTracesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
QueryTraces(ctx context.Context, body QueryTracesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// QuerySpansForTraceWithBody request with any body
QuerySpansForTraceWithBody(ctx context.Context, traceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
QuerySpansForTrace(ctx context.Context, traceId string, body QuerySpansForTraceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSpanDetailsForTrace request
GetSpanDetailsForTrace(ctx context.Context, traceId string, spanId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// Health request
Health(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CreateAlertRuleWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAlertRuleWithBodyWithResponse(ctx context.Context, sourceType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAlertRuleResp, error)
CreateAlertRuleWithBodyWithResponse request with arbitrary body returning *CreateAlertRuleResp
func (*ClientWithResponses) CreateAlertRuleWithResponse ¶
func (c *ClientWithResponses) CreateAlertRuleWithResponse(ctx context.Context, sourceType string, body CreateAlertRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAlertRuleResp, error)
func (*ClientWithResponses) DeleteAlertRuleWithResponse ¶
func (c *ClientWithResponses) DeleteAlertRuleWithResponse(ctx context.Context, sourceType string, ruleName string, reqEditors ...RequestEditorFn) (*DeleteAlertRuleResp, error)
DeleteAlertRuleWithResponse request returning *DeleteAlertRuleResp
func (*ClientWithResponses) GetAlertRuleWithResponse ¶
func (c *ClientWithResponses) GetAlertRuleWithResponse(ctx context.Context, sourceType string, ruleName string, reqEditors ...RequestEditorFn) (*GetAlertRuleResp, error)
GetAlertRuleWithResponse request returning *GetAlertRuleResp
func (*ClientWithResponses) GetSpanDetailsForTraceWithResponse ¶
func (c *ClientWithResponses) GetSpanDetailsForTraceWithResponse(ctx context.Context, traceId string, spanId string, reqEditors ...RequestEditorFn) (*GetSpanDetailsForTraceResp, error)
GetSpanDetailsForTraceWithResponse request returning *GetSpanDetailsForTraceResp
func (*ClientWithResponses) HandleAlertWebhookWithBodyWithResponse ¶
func (c *ClientWithResponses) HandleAlertWebhookWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HandleAlertWebhookResp, error)
HandleAlertWebhookWithBodyWithResponse request with arbitrary body returning *HandleAlertWebhookResp
func (*ClientWithResponses) HandleAlertWebhookWithResponse ¶
func (c *ClientWithResponses) HandleAlertWebhookWithResponse(ctx context.Context, body HandleAlertWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*HandleAlertWebhookResp, error)
func (*ClientWithResponses) HealthWithResponse ¶
func (c *ClientWithResponses) HealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthResp, error)
HealthWithResponse request returning *HealthResp
func (*ClientWithResponses) QueryAlertsWithBodyWithResponse ¶ added in v1.0.0
func (c *ClientWithResponses) QueryAlertsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryAlertsResp, error)
QueryAlertsWithBodyWithResponse request with arbitrary body returning *QueryAlertsResp
func (*ClientWithResponses) QueryAlertsWithResponse ¶ added in v1.0.0
func (c *ClientWithResponses) QueryAlertsWithResponse(ctx context.Context, body QueryAlertsJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryAlertsResp, error)
func (*ClientWithResponses) QueryIncidentsWithBodyWithResponse ¶ added in v1.0.0
func (c *ClientWithResponses) QueryIncidentsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryIncidentsResp, error)
QueryIncidentsWithBodyWithResponse request with arbitrary body returning *QueryIncidentsResp
func (*ClientWithResponses) QueryIncidentsWithResponse ¶ added in v1.0.0
func (c *ClientWithResponses) QueryIncidentsWithResponse(ctx context.Context, body QueryIncidentsJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryIncidentsResp, error)
func (*ClientWithResponses) QueryLogsWithBodyWithResponse ¶
func (c *ClientWithResponses) QueryLogsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryLogsResp, error)
QueryLogsWithBodyWithResponse request with arbitrary body returning *QueryLogsResp
func (*ClientWithResponses) QueryLogsWithResponse ¶
func (c *ClientWithResponses) QueryLogsWithResponse(ctx context.Context, body QueryLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryLogsResp, error)
func (*ClientWithResponses) QueryMetricsWithBodyWithResponse ¶
func (c *ClientWithResponses) QueryMetricsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryMetricsResp, error)
QueryMetricsWithBodyWithResponse request with arbitrary body returning *QueryMetricsResp
func (*ClientWithResponses) QueryMetricsWithResponse ¶
func (c *ClientWithResponses) QueryMetricsWithResponse(ctx context.Context, body QueryMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryMetricsResp, error)
func (*ClientWithResponses) QueryRuntimeTopologyWithBodyWithResponse ¶ added in v1.1.0
func (c *ClientWithResponses) QueryRuntimeTopologyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryRuntimeTopologyResp, error)
QueryRuntimeTopologyWithBodyWithResponse request with arbitrary body returning *QueryRuntimeTopologyResp
func (*ClientWithResponses) QueryRuntimeTopologyWithResponse ¶ added in v1.1.0
func (c *ClientWithResponses) QueryRuntimeTopologyWithResponse(ctx context.Context, body QueryRuntimeTopologyJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryRuntimeTopologyResp, error)
func (*ClientWithResponses) QuerySpansForTraceWithBodyWithResponse ¶
func (c *ClientWithResponses) QuerySpansForTraceWithBodyWithResponse(ctx context.Context, traceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QuerySpansForTraceResp, error)
QuerySpansForTraceWithBodyWithResponse request with arbitrary body returning *QuerySpansForTraceResp
func (*ClientWithResponses) QuerySpansForTraceWithResponse ¶
func (c *ClientWithResponses) QuerySpansForTraceWithResponse(ctx context.Context, traceId string, body QuerySpansForTraceJSONRequestBody, reqEditors ...RequestEditorFn) (*QuerySpansForTraceResp, error)
func (*ClientWithResponses) QueryTracesWithBodyWithResponse ¶
func (c *ClientWithResponses) QueryTracesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryTracesResp, error)
QueryTracesWithBodyWithResponse request with arbitrary body returning *QueryTracesResp
func (*ClientWithResponses) QueryTracesWithResponse ¶
func (c *ClientWithResponses) QueryTracesWithResponse(ctx context.Context, body QueryTracesJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryTracesResp, error)
func (*ClientWithResponses) UpdateAlertRuleWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateAlertRuleWithBodyWithResponse(ctx context.Context, sourceType string, ruleName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAlertRuleResp, error)
UpdateAlertRuleWithBodyWithResponse request with arbitrary body returning *UpdateAlertRuleResp
func (*ClientWithResponses) UpdateAlertRuleWithResponse ¶
func (c *ClientWithResponses) UpdateAlertRuleWithResponse(ctx context.Context, sourceType string, ruleName string, body UpdateAlertRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAlertRuleResp, error)
func (*ClientWithResponses) UpdateIncidentWithBodyWithResponse ¶ added in v1.0.0
func (c *ClientWithResponses) UpdateIncidentWithBodyWithResponse(ctx context.Context, incidentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIncidentResp, error)
UpdateIncidentWithBodyWithResponse request with arbitrary body returning *UpdateIncidentResp
func (*ClientWithResponses) UpdateIncidentWithResponse ¶ added in v1.0.0
func (c *ClientWithResponses) UpdateIncidentWithResponse(ctx context.Context, incidentId string, body UpdateIncidentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIncidentResp, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// QueryLogsWithBodyWithResponse request with any body
QueryLogsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryLogsResp, error)
QueryLogsWithResponse(ctx context.Context, body QueryLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryLogsResp, error)
// QueryMetricsWithBodyWithResponse request with any body
QueryMetricsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryMetricsResp, error)
QueryMetricsWithResponse(ctx context.Context, body QueryMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryMetricsResp, error)
// QueryAlertsWithBodyWithResponse request with any body
QueryAlertsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryAlertsResp, error)
QueryAlertsWithResponse(ctx context.Context, body QueryAlertsJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryAlertsResp, error)
// CreateAlertRuleWithBodyWithResponse request with any body
CreateAlertRuleWithBodyWithResponse(ctx context.Context, sourceType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAlertRuleResp, error)
CreateAlertRuleWithResponse(ctx context.Context, sourceType string, body CreateAlertRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAlertRuleResp, error)
// DeleteAlertRuleWithResponse request
DeleteAlertRuleWithResponse(ctx context.Context, sourceType string, ruleName string, reqEditors ...RequestEditorFn) (*DeleteAlertRuleResp, error)
// GetAlertRuleWithResponse request
GetAlertRuleWithResponse(ctx context.Context, sourceType string, ruleName string, reqEditors ...RequestEditorFn) (*GetAlertRuleResp, error)
// UpdateAlertRuleWithBodyWithResponse request with any body
UpdateAlertRuleWithBodyWithResponse(ctx context.Context, sourceType string, ruleName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAlertRuleResp, error)
UpdateAlertRuleWithResponse(ctx context.Context, sourceType string, ruleName string, body UpdateAlertRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAlertRuleResp, error)
// HandleAlertWebhookWithBodyWithResponse request with any body
HandleAlertWebhookWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HandleAlertWebhookResp, error)
HandleAlertWebhookWithResponse(ctx context.Context, body HandleAlertWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*HandleAlertWebhookResp, error)
// QueryIncidentsWithBodyWithResponse request with any body
QueryIncidentsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryIncidentsResp, error)
QueryIncidentsWithResponse(ctx context.Context, body QueryIncidentsJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryIncidentsResp, error)
// UpdateIncidentWithBodyWithResponse request with any body
UpdateIncidentWithBodyWithResponse(ctx context.Context, incidentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIncidentResp, error)
UpdateIncidentWithResponse(ctx context.Context, incidentId string, body UpdateIncidentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIncidentResp, error)
// QueryRuntimeTopologyWithBodyWithResponse request with any body
QueryRuntimeTopologyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryRuntimeTopologyResp, error)
QueryRuntimeTopologyWithResponse(ctx context.Context, body QueryRuntimeTopologyJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryRuntimeTopologyResp, error)
// QueryTracesWithBodyWithResponse request with any body
QueryTracesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryTracesResp, error)
QueryTracesWithResponse(ctx context.Context, body QueryTracesJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryTracesResp, error)
// QuerySpansForTraceWithBodyWithResponse request with any body
QuerySpansForTraceWithBodyWithResponse(ctx context.Context, traceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QuerySpansForTraceResp, error)
QuerySpansForTraceWithResponse(ctx context.Context, traceId string, body QuerySpansForTraceJSONRequestBody, reqEditors ...RequestEditorFn) (*QuerySpansForTraceResp, error)
// GetSpanDetailsForTraceWithResponse request
GetSpanDetailsForTraceWithResponse(ctx context.Context, traceId string, spanId string, reqEditors ...RequestEditorFn) (*GetSpanDetailsForTraceResp, error)
// HealthWithResponse request
HealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthResp, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ComponentLogEntry ¶
type ComponentLogEntry struct {
// Level The log level
Level *string `json:"level,omitempty"`
// Log The log message
Log *string `json:"log,omitempty"`
// Metadata The metadata of the log entry
Metadata *struct {
// ComponentName The OpenChoreo component name that generated the log
ComponentName *string `json:"componentName,omitempty"`
// ComponentUid The OpenChoreo component UID that generated the log
ComponentUid *openapi_types.UUID `json:"componentUid,omitempty"`
// ContainerName The container name that generated the log
ContainerName *string `json:"containerName,omitempty"`
// EnvironmentName The OpenChoreo environment name that generated the log
EnvironmentName *string `json:"environmentName,omitempty"`
// EnvironmentUid The OpenChoreo environment UID that generated the log
EnvironmentUid *openapi_types.UUID `json:"environmentUid,omitempty"`
// NamespaceName The OpenChoreo namespace name that generated the log
NamespaceName *string `json:"namespaceName,omitempty"`
// PodName The Kubernetes pod name that generated the log
PodName *string `json:"podName,omitempty"`
// PodNamespace The namespace of the Kubernetes pod that generated the log
PodNamespace *string `json:"podNamespace,omitempty"`
// ProjectName The OpenChoreo project name that generated the log
ProjectName *string `json:"projectName,omitempty"`
// ProjectUid The OpenChoreo project UID that generated the log
ProjectUid *openapi_types.UUID `json:"projectUid,omitempty"`
} `json:"metadata,omitempty"`
// Timestamp The timestamp of the log entry
Timestamp *time.Time `json:"timestamp,omitempty"`
}
ComponentLogEntry defines model for ComponentLogEntry.
type ComponentSearchScope ¶
type ComponentSearchScope struct {
Component *string `json:"component,omitempty"`
Environment *string `json:"environment,omitempty"`
Namespace string `json:"namespace"`
Project *string `json:"project,omitempty"`
}
ComponentSearchScope defines model for ComponentSearchScope.
type CreateAlertRule201JSONResponse ¶
type CreateAlertRule201JSONResponse AlertingRuleSyncResponse
func (CreateAlertRule201JSONResponse) VisitCreateAlertRuleResponse ¶
func (response CreateAlertRule201JSONResponse) VisitCreateAlertRuleResponse(w http.ResponseWriter) error
type CreateAlertRule400JSONResponse ¶
type CreateAlertRule400JSONResponse ErrorResponse
func (CreateAlertRule400JSONResponse) VisitCreateAlertRuleResponse ¶
func (response CreateAlertRule400JSONResponse) VisitCreateAlertRuleResponse(w http.ResponseWriter) error
type CreateAlertRule409JSONResponse ¶
type CreateAlertRule409JSONResponse ErrorResponse
func (CreateAlertRule409JSONResponse) VisitCreateAlertRuleResponse ¶
func (response CreateAlertRule409JSONResponse) VisitCreateAlertRuleResponse(w http.ResponseWriter) error
type CreateAlertRule500JSONResponse ¶
type CreateAlertRule500JSONResponse ErrorResponse
func (CreateAlertRule500JSONResponse) VisitCreateAlertRuleResponse ¶
func (response CreateAlertRule500JSONResponse) VisitCreateAlertRuleResponse(w http.ResponseWriter) error
type CreateAlertRuleJSONRequestBody ¶
type CreateAlertRuleJSONRequestBody = AlertRuleRequest
CreateAlertRuleJSONRequestBody defines body for CreateAlertRule for application/json ContentType.
type CreateAlertRuleRequestObject ¶
type CreateAlertRuleRequestObject struct {
SourceType string `json:"sourceType"`
Body *CreateAlertRuleJSONRequestBody
}
type CreateAlertRuleResp ¶
type CreateAlertRuleResp struct {
Body []byte
HTTPResponse *http.Response
JSON201 *AlertingRuleSyncResponse
JSON400 *ErrorResponse
JSON409 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseCreateAlertRuleResp ¶
func ParseCreateAlertRuleResp(rsp *http.Response) (*CreateAlertRuleResp, error)
ParseCreateAlertRuleResp parses an HTTP response from a CreateAlertRuleWithResponse call
func (CreateAlertRuleResp) Status ¶
func (r CreateAlertRuleResp) Status() string
Status returns HTTPResponse.Status
func (CreateAlertRuleResp) StatusCode ¶
func (r CreateAlertRuleResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateAlertRuleResponseObject ¶
type CreateAlertRuleResponseObject interface {
VisitCreateAlertRuleResponse(w http.ResponseWriter) error
}
type DeleteAlertRule200JSONResponse ¶
type DeleteAlertRule200JSONResponse AlertingRuleSyncResponse
func (DeleteAlertRule200JSONResponse) VisitDeleteAlertRuleResponse ¶
func (response DeleteAlertRule200JSONResponse) VisitDeleteAlertRuleResponse(w http.ResponseWriter) error
type DeleteAlertRule400JSONResponse ¶
type DeleteAlertRule400JSONResponse ErrorResponse
func (DeleteAlertRule400JSONResponse) VisitDeleteAlertRuleResponse ¶
func (response DeleteAlertRule400JSONResponse) VisitDeleteAlertRuleResponse(w http.ResponseWriter) error
type DeleteAlertRule404JSONResponse ¶
type DeleteAlertRule404JSONResponse ErrorResponse
func (DeleteAlertRule404JSONResponse) VisitDeleteAlertRuleResponse ¶
func (response DeleteAlertRule404JSONResponse) VisitDeleteAlertRuleResponse(w http.ResponseWriter) error
type DeleteAlertRule500JSONResponse ¶
type DeleteAlertRule500JSONResponse ErrorResponse
func (DeleteAlertRule500JSONResponse) VisitDeleteAlertRuleResponse ¶
func (response DeleteAlertRule500JSONResponse) VisitDeleteAlertRuleResponse(w http.ResponseWriter) error
type DeleteAlertRuleResp ¶
type DeleteAlertRuleResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AlertingRuleSyncResponse
JSON400 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseDeleteAlertRuleResp ¶
func ParseDeleteAlertRuleResp(rsp *http.Response) (*DeleteAlertRuleResp, error)
ParseDeleteAlertRuleResp parses an HTTP response from a DeleteAlertRuleWithResponse call
func (DeleteAlertRuleResp) Status ¶
func (r DeleteAlertRuleResp) Status() string
Status returns HTTPResponse.Status
func (DeleteAlertRuleResp) StatusCode ¶
func (r DeleteAlertRuleResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteAlertRuleResponseObject ¶
type DeleteAlertRuleResponseObject interface {
VisitDeleteAlertRuleResponse(w http.ResponseWriter) error
}
type ErrorResponse ¶
type ErrorResponse struct {
// ErrorCode The error code from observer service
ErrorCode *string `json:"errorCode,omitempty"`
// Message Human-readable error message
Message *string `json:"message,omitempty"`
// Title The error message
Title *ErrorResponseTitle `json:"title,omitempty"`
}
ErrorResponse defines model for ErrorResponse.
type ErrorResponseTitle ¶
type ErrorResponseTitle string
ErrorResponseTitle The error message
const ( BadRequest ErrorResponseTitle = "badRequest" Conflict ErrorResponseTitle = "conflict" Forbidden ErrorResponseTitle = "forbidden" InternalServerError ErrorResponseTitle = "internalServerError" NotFound ErrorResponseTitle = "notFound" )
Defines values for ErrorResponseTitle.
type GetAlertRule200JSONResponse ¶
type GetAlertRule200JSONResponse AlertRuleResponse
func (GetAlertRule200JSONResponse) VisitGetAlertRuleResponse ¶
func (response GetAlertRule200JSONResponse) VisitGetAlertRuleResponse(w http.ResponseWriter) error
type GetAlertRule400JSONResponse ¶
type GetAlertRule400JSONResponse ErrorResponse
func (GetAlertRule400JSONResponse) VisitGetAlertRuleResponse ¶
func (response GetAlertRule400JSONResponse) VisitGetAlertRuleResponse(w http.ResponseWriter) error
type GetAlertRule404JSONResponse ¶
type GetAlertRule404JSONResponse ErrorResponse
func (GetAlertRule404JSONResponse) VisitGetAlertRuleResponse ¶
func (response GetAlertRule404JSONResponse) VisitGetAlertRuleResponse(w http.ResponseWriter) error
type GetAlertRule500JSONResponse ¶
type GetAlertRule500JSONResponse ErrorResponse
func (GetAlertRule500JSONResponse) VisitGetAlertRuleResponse ¶
func (response GetAlertRule500JSONResponse) VisitGetAlertRuleResponse(w http.ResponseWriter) error
type GetAlertRuleResp ¶
type GetAlertRuleResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AlertRuleResponse
JSON400 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetAlertRuleResp ¶
func ParseGetAlertRuleResp(rsp *http.Response) (*GetAlertRuleResp, error)
ParseGetAlertRuleResp parses an HTTP response from a GetAlertRuleWithResponse call
func (GetAlertRuleResp) Status ¶
func (r GetAlertRuleResp) Status() string
Status returns HTTPResponse.Status
func (GetAlertRuleResp) StatusCode ¶
func (r GetAlertRuleResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAlertRuleResponseObject ¶
type GetAlertRuleResponseObject interface {
VisitGetAlertRuleResponse(w http.ResponseWriter) error
}
type GetSpanDetailsForTrace200JSONResponse ¶
type GetSpanDetailsForTrace200JSONResponse TraceSpanDetailsResponse
func (GetSpanDetailsForTrace200JSONResponse) VisitGetSpanDetailsForTraceResponse ¶
func (response GetSpanDetailsForTrace200JSONResponse) VisitGetSpanDetailsForTraceResponse(w http.ResponseWriter) error
type GetSpanDetailsForTrace400JSONResponse ¶
type GetSpanDetailsForTrace400JSONResponse ErrorResponse
func (GetSpanDetailsForTrace400JSONResponse) VisitGetSpanDetailsForTraceResponse ¶
func (response GetSpanDetailsForTrace400JSONResponse) VisitGetSpanDetailsForTraceResponse(w http.ResponseWriter) error
type GetSpanDetailsForTrace401JSONResponse ¶
type GetSpanDetailsForTrace401JSONResponse ErrorResponse
func (GetSpanDetailsForTrace401JSONResponse) VisitGetSpanDetailsForTraceResponse ¶
func (response GetSpanDetailsForTrace401JSONResponse) VisitGetSpanDetailsForTraceResponse(w http.ResponseWriter) error
type GetSpanDetailsForTrace403JSONResponse ¶
type GetSpanDetailsForTrace403JSONResponse ErrorResponse
func (GetSpanDetailsForTrace403JSONResponse) VisitGetSpanDetailsForTraceResponse ¶
func (response GetSpanDetailsForTrace403JSONResponse) VisitGetSpanDetailsForTraceResponse(w http.ResponseWriter) error
type GetSpanDetailsForTrace500JSONResponse ¶
type GetSpanDetailsForTrace500JSONResponse ErrorResponse
func (GetSpanDetailsForTrace500JSONResponse) VisitGetSpanDetailsForTraceResponse ¶
func (response GetSpanDetailsForTrace500JSONResponse) VisitGetSpanDetailsForTraceResponse(w http.ResponseWriter) error
type GetSpanDetailsForTraceResp ¶
type GetSpanDetailsForTraceResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TraceSpanDetailsResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetSpanDetailsForTraceResp ¶
func ParseGetSpanDetailsForTraceResp(rsp *http.Response) (*GetSpanDetailsForTraceResp, error)
ParseGetSpanDetailsForTraceResp parses an HTTP response from a GetSpanDetailsForTraceWithResponse call
func (GetSpanDetailsForTraceResp) Status ¶
func (r GetSpanDetailsForTraceResp) Status() string
Status returns HTTPResponse.Status
func (GetSpanDetailsForTraceResp) StatusCode ¶
func (r GetSpanDetailsForTraceResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSpanDetailsForTraceResponseObject ¶
type GetSpanDetailsForTraceResponseObject interface {
VisitGetSpanDetailsForTraceResponse(w http.ResponseWriter) error
}
type HandleAlertWebhook200JSONResponse ¶
type HandleAlertWebhook200JSONResponse AlertWebhookResponse
func (HandleAlertWebhook200JSONResponse) VisitHandleAlertWebhookResponse ¶
func (response HandleAlertWebhook200JSONResponse) VisitHandleAlertWebhookResponse(w http.ResponseWriter) error
type HandleAlertWebhook400JSONResponse ¶
type HandleAlertWebhook400JSONResponse ErrorResponse
func (HandleAlertWebhook400JSONResponse) VisitHandleAlertWebhookResponse ¶
func (response HandleAlertWebhook400JSONResponse) VisitHandleAlertWebhookResponse(w http.ResponseWriter) error
type HandleAlertWebhook500JSONResponse ¶
type HandleAlertWebhook500JSONResponse ErrorResponse
func (HandleAlertWebhook500JSONResponse) VisitHandleAlertWebhookResponse ¶
func (response HandleAlertWebhook500JSONResponse) VisitHandleAlertWebhookResponse(w http.ResponseWriter) error
type HandleAlertWebhookJSONRequestBody ¶
type HandleAlertWebhookJSONRequestBody = AlertWebhookRequest
HandleAlertWebhookJSONRequestBody defines body for HandleAlertWebhook for application/json ContentType.
type HandleAlertWebhookRequestObject ¶
type HandleAlertWebhookRequestObject struct {
Body *HandleAlertWebhookJSONRequestBody
}
type HandleAlertWebhookResp ¶
type HandleAlertWebhookResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AlertWebhookResponse
JSON400 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseHandleAlertWebhookResp ¶
func ParseHandleAlertWebhookResp(rsp *http.Response) (*HandleAlertWebhookResp, error)
ParseHandleAlertWebhookResp parses an HTTP response from a HandleAlertWebhookWithResponse call
func (HandleAlertWebhookResp) Status ¶
func (r HandleAlertWebhookResp) Status() string
Status returns HTTPResponse.Status
func (HandleAlertWebhookResp) StatusCode ¶
func (r HandleAlertWebhookResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HandleAlertWebhookResponseObject ¶
type HandleAlertWebhookResponseObject interface {
VisitHandleAlertWebhookResponse(w http.ResponseWriter) error
}
type Health200JSONResponse ¶
type Health200JSONResponse struct {
Status *string `json:"status,omitempty"`
}
func (Health200JSONResponse) VisitHealthResponse ¶
func (response Health200JSONResponse) VisitHealthResponse(w http.ResponseWriter) error
type Health503JSONResponse ¶
type Health503JSONResponse struct {
Error *string `json:"error,omitempty"`
Status *string `json:"status,omitempty"`
}
func (Health503JSONResponse) VisitHealthResponse ¶
func (response Health503JSONResponse) VisitHealthResponse(w http.ResponseWriter) error
type HealthRequestObject ¶
type HealthRequestObject struct {
}
type HealthResp ¶
type HealthResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Status *string `json:"status,omitempty"`
}
JSON503 *struct {
Error *string `json:"error,omitempty"`
Status *string `json:"status,omitempty"`
}
}
func ParseHealthResp ¶
func ParseHealthResp(rsp *http.Response) (*HealthResp, error)
ParseHealthResp parses an HTTP response from a HealthWithResponse call
func (HealthResp) StatusCode ¶
func (r HealthResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HealthResponseObject ¶
type HealthResponseObject interface {
VisitHealthResponse(w http.ResponseWriter) error
}
type HttpMetricsTimeSeries ¶
type HttpMetricsTimeSeries struct {
LatencyP50 *[]MetricsTimeSeriesItem `json:"latencyP50,omitempty"`
LatencyP90 *[]MetricsTimeSeriesItem `json:"latencyP90,omitempty"`
LatencyP99 *[]MetricsTimeSeriesItem `json:"latencyP99,omitempty"`
MeanLatency *[]MetricsTimeSeriesItem `json:"meanLatency,omitempty"`
RequestCount *[]MetricsTimeSeriesItem `json:"requestCount,omitempty"`
SuccessfulRequestCount *[]MetricsTimeSeriesItem `json:"successfulRequestCount,omitempty"`
UnsuccessfulRequestCount *[]MetricsTimeSeriesItem `json:"unsuccessfulRequestCount,omitempty"`
}
HttpMetricsTimeSeries defines model for HttpMetricsTimeSeries.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IncidentPutRequest ¶ added in v1.0.0
type IncidentPutRequest struct {
// Description The description of the incident
Description *string `json:"description,omitempty"`
// Notes Notes associated with the incident
Notes *string `json:"notes,omitempty"`
// Status The status of the incident
Status IncidentPutRequestStatus `json:"status"`
}
IncidentPutRequest defines model for IncidentPutRequest.
type IncidentPutRequestStatus ¶ added in v1.0.0
type IncidentPutRequestStatus string
IncidentPutRequestStatus The status of the incident
const ( IncidentPutRequestStatusAcknowledged IncidentPutRequestStatus = "acknowledged" IncidentPutRequestStatusActive IncidentPutRequestStatus = "active" IncidentPutRequestStatusResolved IncidentPutRequestStatus = "resolved" )
Defines values for IncidentPutRequestStatus.
type IncidentPutResponse ¶ added in v1.0.0
type IncidentPutResponse struct {
// AcknowledgedAt The timestamp when the incident was acknowledged
AcknowledgedAt *time.Time `json:"acknowledgedAt,omitempty"`
// AlertId The ID of the alert that triggered the incident
AlertId *string `json:"alertId,omitempty"`
// Description The description of the incident
Description *string `json:"description,omitempty"`
// IncidentId The ID of the incident
IncidentId *string `json:"incidentId,omitempty"`
// IncidentTriggerAiCostAnalysis Whether AI cost analysis was triggered for the incident
IncidentTriggerAiCostAnalysis *bool `json:"incidentTriggerAiCostAnalysis,omitempty"`
// IncidentTriggerAiRca Whether AI RCA was triggered for the incident
IncidentTriggerAiRca *bool `json:"incidentTriggerAiRca,omitempty"`
Labels *struct {
// ComponentName The name of the component
ComponentName *string `json:"componentName,omitempty"`
// ComponentUid The UID of the component
ComponentUid *openapi_types.UUID `json:"componentUid,omitempty"`
// EnvironmentName The name of the environment
EnvironmentName *string `json:"environmentName,omitempty"`
// EnvironmentUid The UID of the environment
EnvironmentUid *openapi_types.UUID `json:"environmentUid,omitempty"`
// NamespaceName The name of the namespace
NamespaceName *string `json:"namespaceName,omitempty"`
// ProjectName The name of the project
ProjectName *string `json:"projectName,omitempty"`
// ProjectUid The UID of the project
ProjectUid *openapi_types.UUID `json:"projectUid,omitempty"`
} `json:"labels,omitempty"`
// Notes Notes associated with the incident
Notes *string `json:"notes,omitempty"`
// ResolvedAt The timestamp when the incident was resolved
ResolvedAt *time.Time `json:"resolvedAt,omitempty"`
// Status The status of the incident
Status *IncidentPutResponseStatus `json:"status,omitempty"`
// TriggeredAt The timestamp when the incident was triggered
TriggeredAt *time.Time `json:"triggeredAt,omitempty"`
}
IncidentPutResponse defines model for IncidentPutResponse.
type IncidentPutResponseStatus ¶ added in v1.0.0
type IncidentPutResponseStatus string
IncidentPutResponseStatus The status of the incident
const ( IncidentPutResponseStatusAcknowledged IncidentPutResponseStatus = "acknowledged" IncidentPutResponseStatusActive IncidentPutResponseStatus = "active" IncidentPutResponseStatusResolved IncidentPutResponseStatus = "resolved" )
Defines values for IncidentPutResponseStatus.
type IncidentsQueryRequest ¶ added in v1.0.0
type IncidentsQueryRequest struct {
// EndTime The end time of the query
EndTime time.Time `json:"endTime"`
// Limit The maximum number of items to return
Limit *int `json:"limit,omitempty"`
SearchScope ComponentSearchScope `json:"searchScope"`
// SortOrder The sort order of the query
SortOrder *IncidentsQueryRequestSortOrder `json:"sortOrder,omitempty"`
// StartTime The start time of the query
StartTime time.Time `json:"startTime"`
}
IncidentsQueryRequest defines model for IncidentsQueryRequest.
type IncidentsQueryRequestSortOrder ¶ added in v1.0.0
type IncidentsQueryRequestSortOrder string
IncidentsQueryRequestSortOrder The sort order of the query
const ( IncidentsQueryRequestSortOrderAsc IncidentsQueryRequestSortOrder = "asc" IncidentsQueryRequestSortOrderDesc IncidentsQueryRequestSortOrder = "desc" )
Defines values for IncidentsQueryRequestSortOrder.
type IncidentsQueryResponse ¶ added in v1.0.0
type IncidentsQueryResponse struct {
// Incidents The list of incidents
Incidents *[]struct {
// AcknowledgedAt The timestamp when the incident was acknowledged
AcknowledgedAt *time.Time `json:"acknowledgedAt,omitempty"`
// AlertId The ID of the alert that triggered the incident
AlertId *string `json:"alertId,omitempty"`
// Description The description of the incident
Description *string `json:"description,omitempty"`
// IncidentId The ID of the incident
IncidentId *string `json:"incidentId,omitempty"`
// IncidentTriggerAiCostAnalysis Whether AI cost analysis was triggered for the incident
IncidentTriggerAiCostAnalysis *bool `json:"incidentTriggerAiCostAnalysis,omitempty"`
// IncidentTriggerAiRca Whether AI RCA was triggered for the incident
IncidentTriggerAiRca *bool `json:"incidentTriggerAiRca,omitempty"`
Labels *struct {
// ComponentName The name of the component
ComponentName *string `json:"componentName,omitempty"`
// ComponentUid The UID of the component
ComponentUid *openapi_types.UUID `json:"componentUid,omitempty"`
// EnvironmentName The name of the environment
EnvironmentName *string `json:"environmentName,omitempty"`
// EnvironmentUid The UID of the environment
EnvironmentUid *openapi_types.UUID `json:"environmentUid,omitempty"`
// NamespaceName The name of the namespace
NamespaceName *string `json:"namespaceName,omitempty"`
// ProjectName The name of the project
ProjectName *string `json:"projectName,omitempty"`
// ProjectUid The UID of the project
ProjectUid *openapi_types.UUID `json:"projectUid,omitempty"`
} `json:"labels,omitempty"`
// Notes Notes associated with the incident
Notes *string `json:"notes,omitempty"`
// ResolvedAt The timestamp when the incident was resolved
ResolvedAt *time.Time `json:"resolvedAt,omitempty"`
// Status The status of the incident
Status *IncidentsQueryResponseIncidentsStatus `json:"status,omitempty"`
// Timestamp The timestamp of the incident
Timestamp *time.Time `json:"timestamp,omitempty"`
// TriggeredAt The timestamp when the incident was triggered
TriggeredAt *time.Time `json:"triggeredAt,omitempty"`
} `json:"incidents,omitempty"`
// TookMs The time taken to query the incidents in milliseconds
TookMs *int `json:"tookMs,omitempty"`
// Total The total number of incidents
Total *int `json:"total,omitempty"`
}
IncidentsQueryResponse defines model for IncidentsQueryResponse.
type IncidentsQueryResponseIncidentsStatus ¶ added in v1.0.0
type IncidentsQueryResponseIncidentsStatus string
IncidentsQueryResponseIncidentsStatus The status of the incident
const ( Acknowledged IncidentsQueryResponseIncidentsStatus = "acknowledged" Active IncidentsQueryResponseIncidentsStatus = "active" Resolved IncidentsQueryResponseIncidentsStatus = "resolved" )
Defines values for IncidentsQueryResponseIncidentsStatus.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type LogsQueryRequest ¶
type LogsQueryRequest struct {
// EndTime The end time of the query
EndTime time.Time `json:"endTime"`
// Limit The maximum number of items to return
Limit *int `json:"limit,omitempty"`
LogLevels *[]LogsQueryRequestLogLevels `json:"logLevels,omitempty"`
SearchPhrase *string `json:"searchPhrase,omitempty"`
SearchScope LogsQueryRequest_SearchScope `json:"searchScope"`
// SortOrder The sort order of the query
SortOrder *LogsQueryRequestSortOrder `json:"sortOrder,omitempty"`
// StartTime The start time of the query
StartTime time.Time `json:"startTime"`
}
LogsQueryRequest defines model for LogsQueryRequest.
type LogsQueryRequestLogLevels ¶
type LogsQueryRequestLogLevels string
LogsQueryRequestLogLevels defines model for LogsQueryRequest.LogLevels.
const ( DEBUG LogsQueryRequestLogLevels = "DEBUG" ERROR LogsQueryRequestLogLevels = "ERROR" INFO LogsQueryRequestLogLevels = "INFO" WARN LogsQueryRequestLogLevels = "WARN" )
Defines values for LogsQueryRequestLogLevels.
type LogsQueryRequestSortOrder ¶
type LogsQueryRequestSortOrder string
LogsQueryRequestSortOrder The sort order of the query
const ( LogsQueryRequestSortOrderAsc LogsQueryRequestSortOrder = "asc" LogsQueryRequestSortOrderDesc LogsQueryRequestSortOrder = "desc" )
Defines values for LogsQueryRequestSortOrder.
type LogsQueryRequest_SearchScope ¶
type LogsQueryRequest_SearchScope struct {
// contains filtered or unexported fields
}
LogsQueryRequest_SearchScope defines model for LogsQueryRequest.SearchScope.
func (LogsQueryRequest_SearchScope) AsComponentSearchScope ¶
func (t LogsQueryRequest_SearchScope) AsComponentSearchScope() (ComponentSearchScope, error)
AsComponentSearchScope returns the union data inside the LogsQueryRequest_SearchScope as a ComponentSearchScope
func (LogsQueryRequest_SearchScope) AsWorkflowSearchScope ¶
func (t LogsQueryRequest_SearchScope) AsWorkflowSearchScope() (WorkflowSearchScope, error)
AsWorkflowSearchScope returns the union data inside the LogsQueryRequest_SearchScope as a WorkflowSearchScope
func (*LogsQueryRequest_SearchScope) FromComponentSearchScope ¶
func (t *LogsQueryRequest_SearchScope) FromComponentSearchScope(v ComponentSearchScope) error
FromComponentSearchScope overwrites any union data inside the LogsQueryRequest_SearchScope as the provided ComponentSearchScope
func (*LogsQueryRequest_SearchScope) FromWorkflowSearchScope ¶
func (t *LogsQueryRequest_SearchScope) FromWorkflowSearchScope(v WorkflowSearchScope) error
FromWorkflowSearchScope overwrites any union data inside the LogsQueryRequest_SearchScope as the provided WorkflowSearchScope
func (LogsQueryRequest_SearchScope) MarshalJSON ¶
func (t LogsQueryRequest_SearchScope) MarshalJSON() ([]byte, error)
func (*LogsQueryRequest_SearchScope) MergeComponentSearchScope ¶
func (t *LogsQueryRequest_SearchScope) MergeComponentSearchScope(v ComponentSearchScope) error
MergeComponentSearchScope performs a merge with any union data inside the LogsQueryRequest_SearchScope, using the provided ComponentSearchScope
func (*LogsQueryRequest_SearchScope) MergeWorkflowSearchScope ¶
func (t *LogsQueryRequest_SearchScope) MergeWorkflowSearchScope(v WorkflowSearchScope) error
MergeWorkflowSearchScope performs a merge with any union data inside the LogsQueryRequest_SearchScope, using the provided WorkflowSearchScope
func (*LogsQueryRequest_SearchScope) UnmarshalJSON ¶
func (t *LogsQueryRequest_SearchScope) UnmarshalJSON(b []byte) error
type LogsQueryResponse ¶
type LogsQueryResponse struct {
// Logs The logs queried successfully
Logs *LogsQueryResponse_Logs `json:"logs,omitempty"`
// TookMs The time taken to query the logs in milliseconds
TookMs *int `json:"tookMs,omitempty"`
// Total The total number of matching log entries, capped at 1000
Total *int `json:"total,omitempty"`
}
LogsQueryResponse defines model for LogsQueryResponse.
type LogsQueryResponseLogs0 ¶
type LogsQueryResponseLogs0 = []ComponentLogEntry
LogsQueryResponseLogs0 defines model for .
type LogsQueryResponseLogs1 ¶
type LogsQueryResponseLogs1 = []WorkflowLogEntry
LogsQueryResponseLogs1 defines model for .
type LogsQueryResponse_Logs ¶
type LogsQueryResponse_Logs struct {
// contains filtered or unexported fields
}
LogsQueryResponse_Logs The logs queried successfully
func (LogsQueryResponse_Logs) AsLogsQueryResponseLogs0 ¶
func (t LogsQueryResponse_Logs) AsLogsQueryResponseLogs0() (LogsQueryResponseLogs0, error)
AsLogsQueryResponseLogs0 returns the union data inside the LogsQueryResponse_Logs as a LogsQueryResponseLogs0
func (LogsQueryResponse_Logs) AsLogsQueryResponseLogs1 ¶
func (t LogsQueryResponse_Logs) AsLogsQueryResponseLogs1() (LogsQueryResponseLogs1, error)
AsLogsQueryResponseLogs1 returns the union data inside the LogsQueryResponse_Logs as a LogsQueryResponseLogs1
func (*LogsQueryResponse_Logs) FromLogsQueryResponseLogs0 ¶
func (t *LogsQueryResponse_Logs) FromLogsQueryResponseLogs0(v LogsQueryResponseLogs0) error
FromLogsQueryResponseLogs0 overwrites any union data inside the LogsQueryResponse_Logs as the provided LogsQueryResponseLogs0
func (*LogsQueryResponse_Logs) FromLogsQueryResponseLogs1 ¶
func (t *LogsQueryResponse_Logs) FromLogsQueryResponseLogs1(v LogsQueryResponseLogs1) error
FromLogsQueryResponseLogs1 overwrites any union data inside the LogsQueryResponse_Logs as the provided LogsQueryResponseLogs1
func (LogsQueryResponse_Logs) MarshalJSON ¶
func (t LogsQueryResponse_Logs) MarshalJSON() ([]byte, error)
func (*LogsQueryResponse_Logs) MergeLogsQueryResponseLogs0 ¶
func (t *LogsQueryResponse_Logs) MergeLogsQueryResponseLogs0(v LogsQueryResponseLogs0) error
MergeLogsQueryResponseLogs0 performs a merge with any union data inside the LogsQueryResponse_Logs, using the provided LogsQueryResponseLogs0
func (*LogsQueryResponse_Logs) MergeLogsQueryResponseLogs1 ¶
func (t *LogsQueryResponse_Logs) MergeLogsQueryResponseLogs1(v LogsQueryResponseLogs1) error
MergeLogsQueryResponseLogs1 performs a merge with any union data inside the LogsQueryResponse_Logs, using the provided LogsQueryResponseLogs1
func (*LogsQueryResponse_Logs) UnmarshalJSON ¶
func (t *LogsQueryResponse_Logs) UnmarshalJSON(b []byte) error
type MetricsQueryRequest ¶
type MetricsQueryRequest struct {
// EndTime The end time of the query
EndTime time.Time `json:"endTime"`
// Metric The type of query to execute
Metric MetricsQueryRequestMetric `json:"metric"`
SearchScope ComponentSearchScope `json:"searchScope"`
// StartTime The start time of the query
StartTime time.Time `json:"startTime"`
// Step The step of the query to determine the number of points to return. E.g. 1m, 5m, 15m, 30m, 1h
Step *string `json:"step,omitempty"`
}
MetricsQueryRequest defines model for MetricsQueryRequest.
type MetricsQueryRequestMetric ¶
type MetricsQueryRequestMetric string
MetricsQueryRequestMetric The type of query to execute
const ( MetricsQueryRequestMetricHttp MetricsQueryRequestMetric = "http" MetricsQueryRequestMetricResource MetricsQueryRequestMetric = "resource" )
Defines values for MetricsQueryRequestMetric.
type MetricsQueryResponse ¶
type MetricsQueryResponse struct {
// contains filtered or unexported fields
}
MetricsQueryResponse defines model for MetricsQueryResponse.
func (MetricsQueryResponse) AsHttpMetricsTimeSeries ¶
func (t MetricsQueryResponse) AsHttpMetricsTimeSeries() (HttpMetricsTimeSeries, error)
AsHttpMetricsTimeSeries returns the union data inside the MetricsQueryResponse as a HttpMetricsTimeSeries
func (MetricsQueryResponse) AsResourceMetricsTimeSeries ¶
func (t MetricsQueryResponse) AsResourceMetricsTimeSeries() (ResourceMetricsTimeSeries, error)
AsResourceMetricsTimeSeries returns the union data inside the MetricsQueryResponse as a ResourceMetricsTimeSeries
func (*MetricsQueryResponse) FromHttpMetricsTimeSeries ¶
func (t *MetricsQueryResponse) FromHttpMetricsTimeSeries(v HttpMetricsTimeSeries) error
FromHttpMetricsTimeSeries overwrites any union data inside the MetricsQueryResponse as the provided HttpMetricsTimeSeries
func (*MetricsQueryResponse) FromResourceMetricsTimeSeries ¶
func (t *MetricsQueryResponse) FromResourceMetricsTimeSeries(v ResourceMetricsTimeSeries) error
FromResourceMetricsTimeSeries overwrites any union data inside the MetricsQueryResponse as the provided ResourceMetricsTimeSeries
func (MetricsQueryResponse) MarshalJSON ¶
func (t MetricsQueryResponse) MarshalJSON() ([]byte, error)
func (*MetricsQueryResponse) MergeHttpMetricsTimeSeries ¶
func (t *MetricsQueryResponse) MergeHttpMetricsTimeSeries(v HttpMetricsTimeSeries) error
MergeHttpMetricsTimeSeries performs a merge with any union data inside the MetricsQueryResponse, using the provided HttpMetricsTimeSeries
func (*MetricsQueryResponse) MergeResourceMetricsTimeSeries ¶
func (t *MetricsQueryResponse) MergeResourceMetricsTimeSeries(v ResourceMetricsTimeSeries) error
MergeResourceMetricsTimeSeries performs a merge with any union data inside the MetricsQueryResponse, using the provided ResourceMetricsTimeSeries
func (*MetricsQueryResponse) UnmarshalJSON ¶
func (t *MetricsQueryResponse) UnmarshalJSON(b []byte) error
type MetricsTimeSeriesItem ¶
type MetricsTimeSeriesItem struct {
// Timestamp The timestamp of the time series item
Timestamp *time.Time `json:"timestamp,omitempty"`
// Value The value of the time series item
Value *float64 `json:"value,omitempty"`
}
MetricsTimeSeriesItem defines model for MetricsTimeSeriesItem.
type QueryAlerts200JSONResponse ¶ added in v1.0.0
type QueryAlerts200JSONResponse AlertsQueryResponse
func (QueryAlerts200JSONResponse) VisitQueryAlertsResponse ¶ added in v1.0.0
func (response QueryAlerts200JSONResponse) VisitQueryAlertsResponse(w http.ResponseWriter) error
type QueryAlerts400JSONResponse ¶ added in v1.0.0
type QueryAlerts400JSONResponse ErrorResponse
func (QueryAlerts400JSONResponse) VisitQueryAlertsResponse ¶ added in v1.0.0
func (response QueryAlerts400JSONResponse) VisitQueryAlertsResponse(w http.ResponseWriter) error
type QueryAlerts401JSONResponse ¶ added in v1.0.0
type QueryAlerts401JSONResponse ErrorResponse
func (QueryAlerts401JSONResponse) VisitQueryAlertsResponse ¶ added in v1.0.0
func (response QueryAlerts401JSONResponse) VisitQueryAlertsResponse(w http.ResponseWriter) error
type QueryAlerts403JSONResponse ¶ added in v1.0.0
type QueryAlerts403JSONResponse ErrorResponse
func (QueryAlerts403JSONResponse) VisitQueryAlertsResponse ¶ added in v1.0.0
func (response QueryAlerts403JSONResponse) VisitQueryAlertsResponse(w http.ResponseWriter) error
type QueryAlerts500JSONResponse ¶ added in v1.0.0
type QueryAlerts500JSONResponse ErrorResponse
func (QueryAlerts500JSONResponse) VisitQueryAlertsResponse ¶ added in v1.0.0
func (response QueryAlerts500JSONResponse) VisitQueryAlertsResponse(w http.ResponseWriter) error
type QueryAlertsJSONRequestBody ¶ added in v1.0.0
type QueryAlertsJSONRequestBody = AlertsQueryRequest
QueryAlertsJSONRequestBody defines body for QueryAlerts for application/json ContentType.
type QueryAlertsRequestObject ¶ added in v1.0.0
type QueryAlertsRequestObject struct {
Body *QueryAlertsJSONRequestBody
}
type QueryAlertsResp ¶ added in v1.0.0
type QueryAlertsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AlertsQueryResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseQueryAlertsResp ¶ added in v1.0.0
func ParseQueryAlertsResp(rsp *http.Response) (*QueryAlertsResp, error)
ParseQueryAlertsResp parses an HTTP response from a QueryAlertsWithResponse call
func (QueryAlertsResp) Status ¶ added in v1.0.0
func (r QueryAlertsResp) Status() string
Status returns HTTPResponse.Status
func (QueryAlertsResp) StatusCode ¶ added in v1.0.0
func (r QueryAlertsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueryAlertsResponseObject ¶ added in v1.0.0
type QueryAlertsResponseObject interface {
VisitQueryAlertsResponse(w http.ResponseWriter) error
}
type QueryIncidents200JSONResponse ¶ added in v1.0.0
type QueryIncidents200JSONResponse IncidentsQueryResponse
func (QueryIncidents200JSONResponse) VisitQueryIncidentsResponse ¶ added in v1.0.0
func (response QueryIncidents200JSONResponse) VisitQueryIncidentsResponse(w http.ResponseWriter) error
type QueryIncidents400JSONResponse ¶ added in v1.0.0
type QueryIncidents400JSONResponse ErrorResponse
func (QueryIncidents400JSONResponse) VisitQueryIncidentsResponse ¶ added in v1.0.0
func (response QueryIncidents400JSONResponse) VisitQueryIncidentsResponse(w http.ResponseWriter) error
type QueryIncidents401JSONResponse ¶ added in v1.0.0
type QueryIncidents401JSONResponse ErrorResponse
func (QueryIncidents401JSONResponse) VisitQueryIncidentsResponse ¶ added in v1.0.0
func (response QueryIncidents401JSONResponse) VisitQueryIncidentsResponse(w http.ResponseWriter) error
type QueryIncidents403JSONResponse ¶ added in v1.0.0
type QueryIncidents403JSONResponse ErrorResponse
func (QueryIncidents403JSONResponse) VisitQueryIncidentsResponse ¶ added in v1.0.0
func (response QueryIncidents403JSONResponse) VisitQueryIncidentsResponse(w http.ResponseWriter) error
type QueryIncidents500JSONResponse ¶ added in v1.0.0
type QueryIncidents500JSONResponse ErrorResponse
func (QueryIncidents500JSONResponse) VisitQueryIncidentsResponse ¶ added in v1.0.0
func (response QueryIncidents500JSONResponse) VisitQueryIncidentsResponse(w http.ResponseWriter) error
type QueryIncidentsJSONRequestBody ¶ added in v1.0.0
type QueryIncidentsJSONRequestBody = IncidentsQueryRequest
QueryIncidentsJSONRequestBody defines body for QueryIncidents for application/json ContentType.
type QueryIncidentsRequestObject ¶ added in v1.0.0
type QueryIncidentsRequestObject struct {
Body *QueryIncidentsJSONRequestBody
}
type QueryIncidentsResp ¶ added in v1.0.0
type QueryIncidentsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *IncidentsQueryResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseQueryIncidentsResp ¶ added in v1.0.0
func ParseQueryIncidentsResp(rsp *http.Response) (*QueryIncidentsResp, error)
ParseQueryIncidentsResp parses an HTTP response from a QueryIncidentsWithResponse call
func (QueryIncidentsResp) Status ¶ added in v1.0.0
func (r QueryIncidentsResp) Status() string
Status returns HTTPResponse.Status
func (QueryIncidentsResp) StatusCode ¶ added in v1.0.0
func (r QueryIncidentsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueryIncidentsResponseObject ¶ added in v1.0.0
type QueryIncidentsResponseObject interface {
VisitQueryIncidentsResponse(w http.ResponseWriter) error
}
type QueryLogs200JSONResponse ¶
type QueryLogs200JSONResponse LogsQueryResponse
func (QueryLogs200JSONResponse) VisitQueryLogsResponse ¶
func (response QueryLogs200JSONResponse) VisitQueryLogsResponse(w http.ResponseWriter) error
type QueryLogs400JSONResponse ¶
type QueryLogs400JSONResponse ErrorResponse
func (QueryLogs400JSONResponse) VisitQueryLogsResponse ¶
func (response QueryLogs400JSONResponse) VisitQueryLogsResponse(w http.ResponseWriter) error
type QueryLogs401JSONResponse ¶
type QueryLogs401JSONResponse ErrorResponse
func (QueryLogs401JSONResponse) VisitQueryLogsResponse ¶
func (response QueryLogs401JSONResponse) VisitQueryLogsResponse(w http.ResponseWriter) error
type QueryLogs403JSONResponse ¶
type QueryLogs403JSONResponse ErrorResponse
func (QueryLogs403JSONResponse) VisitQueryLogsResponse ¶
func (response QueryLogs403JSONResponse) VisitQueryLogsResponse(w http.ResponseWriter) error
type QueryLogs500JSONResponse ¶
type QueryLogs500JSONResponse ErrorResponse
func (QueryLogs500JSONResponse) VisitQueryLogsResponse ¶
func (response QueryLogs500JSONResponse) VisitQueryLogsResponse(w http.ResponseWriter) error
type QueryLogsJSONRequestBody ¶
type QueryLogsJSONRequestBody = LogsQueryRequest
QueryLogsJSONRequestBody defines body for QueryLogs for application/json ContentType.
type QueryLogsRequestObject ¶
type QueryLogsRequestObject struct {
Body *QueryLogsJSONRequestBody
}
type QueryLogsResp ¶
type QueryLogsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LogsQueryResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseQueryLogsResp ¶
func ParseQueryLogsResp(rsp *http.Response) (*QueryLogsResp, error)
ParseQueryLogsResp parses an HTTP response from a QueryLogsWithResponse call
func (QueryLogsResp) Status ¶
func (r QueryLogsResp) Status() string
Status returns HTTPResponse.Status
func (QueryLogsResp) StatusCode ¶
func (r QueryLogsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueryLogsResponseObject ¶
type QueryLogsResponseObject interface {
VisitQueryLogsResponse(w http.ResponseWriter) error
}
type QueryMetrics200JSONResponse ¶
type QueryMetrics200JSONResponse MetricsQueryResponse
func (QueryMetrics200JSONResponse) VisitQueryMetricsResponse ¶
func (response QueryMetrics200JSONResponse) VisitQueryMetricsResponse(w http.ResponseWriter) error
type QueryMetrics400JSONResponse ¶
type QueryMetrics400JSONResponse ErrorResponse
func (QueryMetrics400JSONResponse) VisitQueryMetricsResponse ¶
func (response QueryMetrics400JSONResponse) VisitQueryMetricsResponse(w http.ResponseWriter) error
type QueryMetrics401JSONResponse ¶
type QueryMetrics401JSONResponse ErrorResponse
func (QueryMetrics401JSONResponse) VisitQueryMetricsResponse ¶
func (response QueryMetrics401JSONResponse) VisitQueryMetricsResponse(w http.ResponseWriter) error
type QueryMetrics403JSONResponse ¶
type QueryMetrics403JSONResponse ErrorResponse
func (QueryMetrics403JSONResponse) VisitQueryMetricsResponse ¶
func (response QueryMetrics403JSONResponse) VisitQueryMetricsResponse(w http.ResponseWriter) error
type QueryMetrics500JSONResponse ¶
type QueryMetrics500JSONResponse ErrorResponse
func (QueryMetrics500JSONResponse) VisitQueryMetricsResponse ¶
func (response QueryMetrics500JSONResponse) VisitQueryMetricsResponse(w http.ResponseWriter) error
type QueryMetricsJSONRequestBody ¶
type QueryMetricsJSONRequestBody = MetricsQueryRequest
QueryMetricsJSONRequestBody defines body for QueryMetrics for application/json ContentType.
type QueryMetricsRequestObject ¶
type QueryMetricsRequestObject struct {
Body *QueryMetricsJSONRequestBody
}
type QueryMetricsResp ¶
type QueryMetricsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MetricsQueryResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseQueryMetricsResp ¶
func ParseQueryMetricsResp(rsp *http.Response) (*QueryMetricsResp, error)
ParseQueryMetricsResp parses an HTTP response from a QueryMetricsWithResponse call
func (QueryMetricsResp) Status ¶
func (r QueryMetricsResp) Status() string
Status returns HTTPResponse.Status
func (QueryMetricsResp) StatusCode ¶
func (r QueryMetricsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueryMetricsResponseObject ¶
type QueryMetricsResponseObject interface {
VisitQueryMetricsResponse(w http.ResponseWriter) error
}
type QueryRuntimeTopology200JSONResponse ¶ added in v1.1.0
type QueryRuntimeTopology200JSONResponse RuntimeTopologyResponse
func (QueryRuntimeTopology200JSONResponse) VisitQueryRuntimeTopologyResponse ¶ added in v1.1.0
func (response QueryRuntimeTopology200JSONResponse) VisitQueryRuntimeTopologyResponse(w http.ResponseWriter) error
type QueryRuntimeTopology400JSONResponse ¶ added in v1.1.0
type QueryRuntimeTopology400JSONResponse ErrorResponse
func (QueryRuntimeTopology400JSONResponse) VisitQueryRuntimeTopologyResponse ¶ added in v1.1.0
func (response QueryRuntimeTopology400JSONResponse) VisitQueryRuntimeTopologyResponse(w http.ResponseWriter) error
type QueryRuntimeTopology401JSONResponse ¶ added in v1.1.0
type QueryRuntimeTopology401JSONResponse ErrorResponse
func (QueryRuntimeTopology401JSONResponse) VisitQueryRuntimeTopologyResponse ¶ added in v1.1.0
func (response QueryRuntimeTopology401JSONResponse) VisitQueryRuntimeTopologyResponse(w http.ResponseWriter) error
type QueryRuntimeTopology403JSONResponse ¶ added in v1.1.0
type QueryRuntimeTopology403JSONResponse ErrorResponse
func (QueryRuntimeTopology403JSONResponse) VisitQueryRuntimeTopologyResponse ¶ added in v1.1.0
func (response QueryRuntimeTopology403JSONResponse) VisitQueryRuntimeTopologyResponse(w http.ResponseWriter) error
type QueryRuntimeTopology500JSONResponse ¶ added in v1.1.0
type QueryRuntimeTopology500JSONResponse ErrorResponse
func (QueryRuntimeTopology500JSONResponse) VisitQueryRuntimeTopologyResponse ¶ added in v1.1.0
func (response QueryRuntimeTopology500JSONResponse) VisitQueryRuntimeTopologyResponse(w http.ResponseWriter) error
type QueryRuntimeTopologyJSONRequestBody ¶ added in v1.1.0
type QueryRuntimeTopologyJSONRequestBody = RuntimeTopologyRequest
QueryRuntimeTopologyJSONRequestBody defines body for QueryRuntimeTopology for application/json ContentType.
type QueryRuntimeTopologyRequestObject ¶ added in v1.1.0
type QueryRuntimeTopologyRequestObject struct {
Body *QueryRuntimeTopologyJSONRequestBody
}
type QueryRuntimeTopologyResp ¶ added in v1.1.0
type QueryRuntimeTopologyResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *RuntimeTopologyResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseQueryRuntimeTopologyResp ¶ added in v1.1.0
func ParseQueryRuntimeTopologyResp(rsp *http.Response) (*QueryRuntimeTopologyResp, error)
ParseQueryRuntimeTopologyResp parses an HTTP response from a QueryRuntimeTopologyWithResponse call
func (QueryRuntimeTopologyResp) Status ¶ added in v1.1.0
func (r QueryRuntimeTopologyResp) Status() string
Status returns HTTPResponse.Status
func (QueryRuntimeTopologyResp) StatusCode ¶ added in v1.1.0
func (r QueryRuntimeTopologyResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueryRuntimeTopologyResponseObject ¶ added in v1.1.0
type QueryRuntimeTopologyResponseObject interface {
VisitQueryRuntimeTopologyResponse(w http.ResponseWriter) error
}
type QuerySpansForTrace200JSONResponse ¶
type QuerySpansForTrace200JSONResponse TraceSpansQueryResponse
func (QuerySpansForTrace200JSONResponse) VisitQuerySpansForTraceResponse ¶
func (response QuerySpansForTrace200JSONResponse) VisitQuerySpansForTraceResponse(w http.ResponseWriter) error
type QuerySpansForTrace400JSONResponse ¶
type QuerySpansForTrace400JSONResponse ErrorResponse
func (QuerySpansForTrace400JSONResponse) VisitQuerySpansForTraceResponse ¶
func (response QuerySpansForTrace400JSONResponse) VisitQuerySpansForTraceResponse(w http.ResponseWriter) error
type QuerySpansForTrace401JSONResponse ¶
type QuerySpansForTrace401JSONResponse ErrorResponse
func (QuerySpansForTrace401JSONResponse) VisitQuerySpansForTraceResponse ¶
func (response QuerySpansForTrace401JSONResponse) VisitQuerySpansForTraceResponse(w http.ResponseWriter) error
type QuerySpansForTrace403JSONResponse ¶
type QuerySpansForTrace403JSONResponse ErrorResponse
func (QuerySpansForTrace403JSONResponse) VisitQuerySpansForTraceResponse ¶
func (response QuerySpansForTrace403JSONResponse) VisitQuerySpansForTraceResponse(w http.ResponseWriter) error
type QuerySpansForTrace500JSONResponse ¶
type QuerySpansForTrace500JSONResponse ErrorResponse
func (QuerySpansForTrace500JSONResponse) VisitQuerySpansForTraceResponse ¶
func (response QuerySpansForTrace500JSONResponse) VisitQuerySpansForTraceResponse(w http.ResponseWriter) error
type QuerySpansForTraceJSONRequestBody ¶
type QuerySpansForTraceJSONRequestBody = TracesQueryRequest
QuerySpansForTraceJSONRequestBody defines body for QuerySpansForTrace for application/json ContentType.
type QuerySpansForTraceRequestObject ¶
type QuerySpansForTraceRequestObject struct {
TraceId string `json:"traceId"`
Body *QuerySpansForTraceJSONRequestBody
}
type QuerySpansForTraceResp ¶
type QuerySpansForTraceResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TraceSpansQueryResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseQuerySpansForTraceResp ¶
func ParseQuerySpansForTraceResp(rsp *http.Response) (*QuerySpansForTraceResp, error)
ParseQuerySpansForTraceResp parses an HTTP response from a QuerySpansForTraceWithResponse call
func (QuerySpansForTraceResp) Status ¶
func (r QuerySpansForTraceResp) Status() string
Status returns HTTPResponse.Status
func (QuerySpansForTraceResp) StatusCode ¶
func (r QuerySpansForTraceResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QuerySpansForTraceResponseObject ¶
type QuerySpansForTraceResponseObject interface {
VisitQuerySpansForTraceResponse(w http.ResponseWriter) error
}
type QueryTraces200JSONResponse ¶
type QueryTraces200JSONResponse TracesQueryResponse
func (QueryTraces200JSONResponse) VisitQueryTracesResponse ¶
func (response QueryTraces200JSONResponse) VisitQueryTracesResponse(w http.ResponseWriter) error
type QueryTraces400JSONResponse ¶
type QueryTraces400JSONResponse ErrorResponse
func (QueryTraces400JSONResponse) VisitQueryTracesResponse ¶
func (response QueryTraces400JSONResponse) VisitQueryTracesResponse(w http.ResponseWriter) error
type QueryTraces401JSONResponse ¶
type QueryTraces401JSONResponse ErrorResponse
func (QueryTraces401JSONResponse) VisitQueryTracesResponse ¶
func (response QueryTraces401JSONResponse) VisitQueryTracesResponse(w http.ResponseWriter) error
type QueryTraces403JSONResponse ¶
type QueryTraces403JSONResponse ErrorResponse
func (QueryTraces403JSONResponse) VisitQueryTracesResponse ¶
func (response QueryTraces403JSONResponse) VisitQueryTracesResponse(w http.ResponseWriter) error
type QueryTraces500JSONResponse ¶
type QueryTraces500JSONResponse ErrorResponse
func (QueryTraces500JSONResponse) VisitQueryTracesResponse ¶
func (response QueryTraces500JSONResponse) VisitQueryTracesResponse(w http.ResponseWriter) error
type QueryTracesJSONRequestBody ¶
type QueryTracesJSONRequestBody = TracesQueryRequest
QueryTracesJSONRequestBody defines body for QueryTraces for application/json ContentType.
type QueryTracesRequestObject ¶
type QueryTracesRequestObject struct {
Body *QueryTracesJSONRequestBody
}
type QueryTracesResp ¶
type QueryTracesResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TracesQueryResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseQueryTracesResp ¶
func ParseQueryTracesResp(rsp *http.Response) (*QueryTracesResp, error)
ParseQueryTracesResp parses an HTTP response from a QueryTracesWithResponse call
func (QueryTracesResp) Status ¶
func (r QueryTracesResp) Status() string
Status returns HTTPResponse.Status
func (QueryTracesResp) StatusCode ¶
func (r QueryTracesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueryTracesResponseObject ¶
type QueryTracesResponseObject interface {
VisitQueryTracesResponse(w http.ResponseWriter) error
}
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ResourceMetricsTimeSeries ¶
type ResourceMetricsTimeSeries struct {
CpuLimits *[]MetricsTimeSeriesItem `json:"cpuLimits,omitempty"`
CpuRequests *[]MetricsTimeSeriesItem `json:"cpuRequests,omitempty"`
CpuUsage *[]MetricsTimeSeriesItem `json:"cpuUsage,omitempty"`
MemoryLimits *[]MetricsTimeSeriesItem `json:"memoryLimits,omitempty"`
MemoryRequests *[]MetricsTimeSeriesItem `json:"memoryRequests,omitempty"`
MemoryUsage *[]MetricsTimeSeriesItem `json:"memoryUsage,omitempty"`
}
ResourceMetricsTimeSeries defines model for ResourceMetricsTimeSeries.
type RuntimeTopologyEdge ¶ added in v1.1.0
type RuntimeTopologyEdge struct {
// Id Stable identifier for the edge. Convention:
// - component->component: `${srcComponent}:${srcService}->${dstComponent}:${dstService}`
// - gateway->component: `gateway:${gatewayName}->${dstComponent}:${dstService}`
// - component->external: `${srcComponent}:${srcService}->external:${host}`
Id string `json:"id"`
// Metrics Aggregate HTTP metrics over the requested time window.
// Latency values are in seconds (consistent with /api/v1/metrics/query).
Metrics *RuntimeTopologyMetrics `json:"metrics,omitempty"`
// Protocol Wire protocol of the observed traffic.
Protocol *RuntimeTopologyEdgeProtocol `json:"protocol,omitempty"`
// Source Reference to a node in the runtime topology. The shape depends on `kind`:
// - kind=component: `componentUid` is always populated when the data
// comes from an HTTP-metrics backend; `component` (name) is filled
// when the observer can resolve it.
// - kind=gateway: `name` is required (e.g. "internet", "intranet").
// - kind=external: at least one of `host` or `component`/`componentUid`
// should be set; `project`/`projectUid` is included when the source
// is in a different project.
Source RuntimeTopologyNodeRef `json:"source"`
// Target Reference to a node in the runtime topology. The shape depends on `kind`:
// - kind=component: `componentUid` is always populated when the data
// comes from an HTTP-metrics backend; `component` (name) is filled
// when the observer can resolve it.
// - kind=gateway: `name` is required (e.g. "internet", "intranet").
// - kind=external: at least one of `host` or `component`/`componentUid`
// should be set; `project`/`projectUid` is included when the source
// is in a different project.
Target RuntimeTopologyNodeRef `json:"target"`
}
RuntimeTopologyEdge An observed traffic flow from a source node to a target node.
type RuntimeTopologyEdgeProtocol ¶ added in v1.1.0
type RuntimeTopologyEdgeProtocol string
RuntimeTopologyEdgeProtocol Wire protocol of the observed traffic.
const (
RuntimeTopologyEdgeProtocolHttp RuntimeTopologyEdgeProtocol = "http"
)
Defines values for RuntimeTopologyEdgeProtocol.
type RuntimeTopologyMetrics ¶ added in v1.1.0
type RuntimeTopologyMetrics struct {
// LatencyP50 50th percentile request latency, in seconds.
LatencyP50 *float64 `json:"latencyP50,omitempty"`
// LatencyP90 90th percentile request latency, in seconds.
LatencyP90 *float64 `json:"latencyP90,omitempty"`
// LatencyP99 99th percentile request latency, in seconds.
LatencyP99 *float64 `json:"latencyP99,omitempty"`
// MeanLatency Mean request latency, in seconds.
MeanLatency *float64 `json:"meanLatency,omitempty"`
// RequestCount Total number of HTTP requests observed in the window.
RequestCount *float64 `json:"requestCount,omitempty"`
// UnsuccessfulRequestCount Number of unsuccessful (non-2xx) HTTP requests in the window.
UnsuccessfulRequestCount *float64 `json:"unsuccessfulRequestCount,omitempty"`
}
RuntimeTopologyMetrics Aggregate HTTP metrics over the requested time window. Latency values are in seconds (consistent with /api/v1/metrics/query).
type RuntimeTopologyNode ¶ added in v1.1.0
type RuntimeTopologyNode struct {
Component *string `json:"component,omitempty"`
ComponentUid *openapi_types.UUID `json:"componentUid,omitempty"`
Host *string `json:"host,omitempty"`
Kind RuntimeTopologyNodeKind `json:"kind"`
// Metrics Aggregate HTTP metrics over the requested time window.
// Latency values are in seconds (consistent with /api/v1/metrics/query).
Metrics *RuntimeTopologyMetrics `json:"metrics,omitempty"`
Name *string `json:"name,omitempty"`
Namespace *string `json:"namespace,omitempty"`
Project *string `json:"project,omitempty"`
ProjectUid *openapi_types.UUID `json:"projectUid,omitempty"`
Service *string `json:"service,omitempty"`
}
RuntimeTopologyNode A node observed in the runtime topology, with its aggregated metrics.
type RuntimeTopologyNodeKind ¶ added in v1.1.0
type RuntimeTopologyNodeKind string
RuntimeTopologyNodeKind defines model for RuntimeTopologyNode.Kind.
const ( RuntimeTopologyNodeKindComponent RuntimeTopologyNodeKind = "component" RuntimeTopologyNodeKindExternal RuntimeTopologyNodeKind = "external" RuntimeTopologyNodeKindGateway RuntimeTopologyNodeKind = "gateway" )
Defines values for RuntimeTopologyNodeKind.
type RuntimeTopologyNodeRef ¶ added in v1.1.0
type RuntimeTopologyNodeRef struct {
// Component Component name (when kind=component, or for external cross-project sources).
Component *string `json:"component,omitempty"`
// ComponentUid OpenChoreo component UID. Populated from the metrics backend; useful
// for stable matching when the human-readable name is unavailable.
ComponentUid *openapi_types.UUID `json:"componentUid,omitempty"`
// Host Host (when kind=external).
Host *string `json:"host,omitempty"`
Kind RuntimeTopologyNodeRefKind `json:"kind"`
// Name Gateway name (when kind=gateway).
Name *string `json:"name,omitempty"`
// Namespace Namespace the node lives in.
Namespace *string `json:"namespace,omitempty"`
// Project Project name (when kind=external and the source is in a different project).
Project *string `json:"project,omitempty"`
// ProjectUid OpenChoreo project UID.
ProjectUid *openapi_types.UUID `json:"projectUid,omitempty"`
// Service Workload endpoint name (when kind=component).
Service *string `json:"service,omitempty"`
}
RuntimeTopologyNodeRef Reference to a node in the runtime topology. The shape depends on `kind`:
- kind=component: `componentUid` is always populated when the data comes from an HTTP-metrics backend; `component` (name) is filled when the observer can resolve it.
- kind=gateway: `name` is required (e.g. "internet", "intranet").
- kind=external: at least one of `host` or `component`/`componentUid` should be set; `project`/`projectUid` is included when the source is in a different project.
type RuntimeTopologyNodeRefKind ¶ added in v1.1.0
type RuntimeTopologyNodeRefKind string
RuntimeTopologyNodeRefKind defines model for RuntimeTopologyNodeRef.Kind.
const ( RuntimeTopologyNodeRefKindComponent RuntimeTopologyNodeRefKind = "component" RuntimeTopologyNodeRefKindExternal RuntimeTopologyNodeRefKind = "external" RuntimeTopologyNodeRefKindGateway RuntimeTopologyNodeRefKind = "gateway" )
Defines values for RuntimeTopologyNodeRefKind.
type RuntimeTopologyRequest ¶ added in v1.1.0
type RuntimeTopologyRequest struct {
// EndTime The end time of the query window
EndTime time.Time `json:"endTime"`
// IncludeExternal Whether to include edges to/from components outside the requested
// project (cross-project or off-platform). Defaults to true.
IncludeExternal *bool `json:"includeExternal,omitempty"`
// IncludeGateways Whether to include gateway -> component edges. Defaults to true.
IncludeGateways *bool `json:"includeGateways,omitempty"`
SearchScope RuntimeTopologySearchScope `json:"searchScope"`
// StartTime The start time of the query window
StartTime time.Time `json:"startTime"`
}
RuntimeTopologyRequest Request body for POST /api/v1alpha1/metrics/runtime-topology. searchScope must include namespace, project, and environment — runtime topology is project- and environment-scoped. The optional component field, if set, restricts results to edges that touch that component.
type RuntimeTopologyResponse ¶ added in v1.1.0
type RuntimeTopologyResponse struct {
Edges *[]RuntimeTopologyEdge `json:"edges,omitempty"`
Nodes *[]RuntimeTopologyNode `json:"nodes,omitempty"`
// Summary Metadata describing the query window the response was computed for.
Summary RuntimeTopologySummary `json:"summary"`
}
RuntimeTopologyResponse The runtime topology response. Nodes and edges contain only entities for which traffic was observed during the requested time window. Static topology (workload dependency graph) is NOT included in this response; it must be fetched separately from the OpenChoreo API.
type RuntimeTopologySearchScope ¶ added in v1.1.0
type RuntimeTopologySearchScope = ComponentSearchScope
RuntimeTopologySearchScope defines model for RuntimeTopologySearchScope.
type RuntimeTopologySummary ¶ added in v1.1.0
type RuntimeTopologySummary struct {
EndTime time.Time `json:"endTime"`
GeneratedAt time.Time `json:"generatedAt"`
StartTime time.Time `json:"startTime"`
}
RuntimeTopologySummary Metadata describing the query window the response was computed for.
type ServeMux ¶
type ServeMux interface {
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
ServeHTTP(w http.ResponseWriter, r *http.Request)
}
ServeMux is an abstraction of http.ServeMux.
type ServerInterface ¶
type ServerInterface interface {
// Query logs
// (POST /api/v1/logs/query)
QueryLogs(w http.ResponseWriter, r *http.Request)
// Query metrics
// (POST /api/v1/metrics/query)
QueryMetrics(w http.ResponseWriter, r *http.Request)
// Query alerts
// (POST /api/v1alpha1/alerts/query)
QueryAlerts(w http.ResponseWriter, r *http.Request)
// Create alert rule
// (POST /api/v1alpha1/alerts/sources/{sourceType}/rules)
CreateAlertRule(w http.ResponseWriter, r *http.Request, sourceType string)
// Delete alert rule
// (DELETE /api/v1alpha1/alerts/sources/{sourceType}/rules/{ruleName})
DeleteAlertRule(w http.ResponseWriter, r *http.Request, sourceType string, ruleName string)
// Get alert rule
// (GET /api/v1alpha1/alerts/sources/{sourceType}/rules/{ruleName})
GetAlertRule(w http.ResponseWriter, r *http.Request, sourceType string, ruleName string)
// Update alert rule
// (PUT /api/v1alpha1/alerts/sources/{sourceType}/rules/{ruleName})
UpdateAlertRule(w http.ResponseWriter, r *http.Request, sourceType string, ruleName string)
// Handles triggered alerts from the alerting backend
// (POST /api/v1alpha1/alerts/webhook)
HandleAlertWebhook(w http.ResponseWriter, r *http.Request)
// Query incidents
// (POST /api/v1alpha1/incidents/query)
QueryIncidents(w http.ResponseWriter, r *http.Request)
// Update incident
// (PUT /api/v1alpha1/incidents/{incidentId})
UpdateIncident(w http.ResponseWriter, r *http.Request, incidentId string)
// Query runtime topology
// (POST /api/v1alpha1/metrics/runtime-topology)
QueryRuntimeTopology(w http.ResponseWriter, r *http.Request)
// Query traces
// (POST /api/v1alpha1/traces/query)
QueryTraces(w http.ResponseWriter, r *http.Request)
// Query spans for a trace
// (POST /api/v1alpha1/traces/{traceId}/spans/query)
QuerySpansForTrace(w http.ResponseWriter, r *http.Request, traceId string)
// Get details of a span for a trace
// (GET /api/v1alpha1/traces/{traceId}/spans/{spanId})
GetSpanDetailsForTrace(w http.ResponseWriter, r *http.Request, traceId string, spanId string)
// Health check
// (GET /health)
Health(w http.ResponseWriter, r *http.Request)
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
func NewStrictHandlerWithOptions ¶
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) CreateAlertRule ¶
func (siw *ServerInterfaceWrapper) CreateAlertRule(w http.ResponseWriter, r *http.Request)
CreateAlertRule operation middleware
func (*ServerInterfaceWrapper) DeleteAlertRule ¶
func (siw *ServerInterfaceWrapper) DeleteAlertRule(w http.ResponseWriter, r *http.Request)
DeleteAlertRule operation middleware
func (*ServerInterfaceWrapper) GetAlertRule ¶
func (siw *ServerInterfaceWrapper) GetAlertRule(w http.ResponseWriter, r *http.Request)
GetAlertRule operation middleware
func (*ServerInterfaceWrapper) GetSpanDetailsForTrace ¶
func (siw *ServerInterfaceWrapper) GetSpanDetailsForTrace(w http.ResponseWriter, r *http.Request)
GetSpanDetailsForTrace operation middleware
func (*ServerInterfaceWrapper) HandleAlertWebhook ¶
func (siw *ServerInterfaceWrapper) HandleAlertWebhook(w http.ResponseWriter, r *http.Request)
HandleAlertWebhook operation middleware
func (*ServerInterfaceWrapper) Health ¶
func (siw *ServerInterfaceWrapper) Health(w http.ResponseWriter, r *http.Request)
Health operation middleware
func (*ServerInterfaceWrapper) QueryAlerts ¶ added in v1.0.0
func (siw *ServerInterfaceWrapper) QueryAlerts(w http.ResponseWriter, r *http.Request)
QueryAlerts operation middleware
func (*ServerInterfaceWrapper) QueryIncidents ¶ added in v1.0.0
func (siw *ServerInterfaceWrapper) QueryIncidents(w http.ResponseWriter, r *http.Request)
QueryIncidents operation middleware
func (*ServerInterfaceWrapper) QueryLogs ¶
func (siw *ServerInterfaceWrapper) QueryLogs(w http.ResponseWriter, r *http.Request)
QueryLogs operation middleware
func (*ServerInterfaceWrapper) QueryMetrics ¶
func (siw *ServerInterfaceWrapper) QueryMetrics(w http.ResponseWriter, r *http.Request)
QueryMetrics operation middleware
func (*ServerInterfaceWrapper) QueryRuntimeTopology ¶ added in v1.1.0
func (siw *ServerInterfaceWrapper) QueryRuntimeTopology(w http.ResponseWriter, r *http.Request)
QueryRuntimeTopology operation middleware
func (*ServerInterfaceWrapper) QuerySpansForTrace ¶
func (siw *ServerInterfaceWrapper) QuerySpansForTrace(w http.ResponseWriter, r *http.Request)
QuerySpansForTrace operation middleware
func (*ServerInterfaceWrapper) QueryTraces ¶
func (siw *ServerInterfaceWrapper) QueryTraces(w http.ResponseWriter, r *http.Request)
QueryTraces operation middleware
func (*ServerInterfaceWrapper) UpdateAlertRule ¶
func (siw *ServerInterfaceWrapper) UpdateAlertRule(w http.ResponseWriter, r *http.Request)
UpdateAlertRule operation middleware
func (*ServerInterfaceWrapper) UpdateIncident ¶ added in v1.0.0
func (siw *ServerInterfaceWrapper) UpdateIncident(w http.ResponseWriter, r *http.Request)
UpdateIncident operation middleware
type StdHTTPServerOptions ¶
type StdHTTPServerOptions struct {
BaseURL string
BaseRouter ServeMux
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHTTPServerOptions ¶
type StrictHTTPServerOptions struct {
RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictnethttp.StrictHTTPHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictnethttp.StrictHTTPMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// Query logs
// (POST /api/v1/logs/query)
QueryLogs(ctx context.Context, request QueryLogsRequestObject) (QueryLogsResponseObject, error)
// Query metrics
// (POST /api/v1/metrics/query)
QueryMetrics(ctx context.Context, request QueryMetricsRequestObject) (QueryMetricsResponseObject, error)
// Query alerts
// (POST /api/v1alpha1/alerts/query)
QueryAlerts(ctx context.Context, request QueryAlertsRequestObject) (QueryAlertsResponseObject, error)
// Create alert rule
// (POST /api/v1alpha1/alerts/sources/{sourceType}/rules)
CreateAlertRule(ctx context.Context, request CreateAlertRuleRequestObject) (CreateAlertRuleResponseObject, error)
// Delete alert rule
// (DELETE /api/v1alpha1/alerts/sources/{sourceType}/rules/{ruleName})
DeleteAlertRule(ctx context.Context, request DeleteAlertRuleRequestObject) (DeleteAlertRuleResponseObject, error)
// Get alert rule
// (GET /api/v1alpha1/alerts/sources/{sourceType}/rules/{ruleName})
GetAlertRule(ctx context.Context, request GetAlertRuleRequestObject) (GetAlertRuleResponseObject, error)
// Update alert rule
// (PUT /api/v1alpha1/alerts/sources/{sourceType}/rules/{ruleName})
UpdateAlertRule(ctx context.Context, request UpdateAlertRuleRequestObject) (UpdateAlertRuleResponseObject, error)
// Handles triggered alerts from the alerting backend
// (POST /api/v1alpha1/alerts/webhook)
HandleAlertWebhook(ctx context.Context, request HandleAlertWebhookRequestObject) (HandleAlertWebhookResponseObject, error)
// Query incidents
// (POST /api/v1alpha1/incidents/query)
QueryIncidents(ctx context.Context, request QueryIncidentsRequestObject) (QueryIncidentsResponseObject, error)
// Update incident
// (PUT /api/v1alpha1/incidents/{incidentId})
UpdateIncident(ctx context.Context, request UpdateIncidentRequestObject) (UpdateIncidentResponseObject, error)
// Query runtime topology
// (POST /api/v1alpha1/metrics/runtime-topology)
QueryRuntimeTopology(ctx context.Context, request QueryRuntimeTopologyRequestObject) (QueryRuntimeTopologyResponseObject, error)
// Query traces
// (POST /api/v1alpha1/traces/query)
QueryTraces(ctx context.Context, request QueryTracesRequestObject) (QueryTracesResponseObject, error)
// Query spans for a trace
// (POST /api/v1alpha1/traces/{traceId}/spans/query)
QuerySpansForTrace(ctx context.Context, request QuerySpansForTraceRequestObject) (QuerySpansForTraceResponseObject, error)
// Get details of a span for a trace
// (GET /api/v1alpha1/traces/{traceId}/spans/{spanId})
GetSpanDetailsForTrace(ctx context.Context, request GetSpanDetailsForTraceRequestObject) (GetSpanDetailsForTraceResponseObject, error)
// Health check
// (GET /health)
Health(ctx context.Context, request HealthRequestObject) (HealthResponseObject, error)
}
StrictServerInterface represents all server handlers.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type TraceSpanDetailsResponse ¶
type TraceSpanDetailsResponse struct {
Attributes *[]struct {
// Key The key of the attribute
Key *string `json:"key,omitempty"`
// Value The value of the attribute
Value *string `json:"value,omitempty"`
} `json:"attributes,omitempty"`
// DurationNs The duration of the span in nanoseconds
DurationNs *int64 `json:"durationNs,omitempty"`
// EndTime The end time of the span
EndTime *time.Time `json:"endTime,omitempty"`
// ParentSpanId The parent span ID
ParentSpanId *string `json:"parentSpanId,omitempty"`
// SpanId The span ID
SpanId *string `json:"spanId,omitempty"`
// SpanKind The kind of the span
SpanKind *string `json:"spanKind,omitempty"`
// SpanName The name of the span
SpanName *string `json:"spanName,omitempty"`
// StartTime The start time of the span
StartTime *time.Time `json:"startTime,omitempty"`
// Status The execution status of the span. One of "ok", "error", or "unset".
Status *TraceSpanDetailsResponseStatus `json:"status,omitempty"`
}
TraceSpanDetailsResponse defines model for TraceSpanDetailsResponse.
type TraceSpanDetailsResponseStatus ¶ added in v1.0.1
type TraceSpanDetailsResponseStatus string
TraceSpanDetailsResponseStatus The execution status of the span. One of "ok", "error", or "unset".
const ( TraceSpanDetailsResponseStatusError TraceSpanDetailsResponseStatus = "error" TraceSpanDetailsResponseStatusOk TraceSpanDetailsResponseStatus = "ok" TraceSpanDetailsResponseStatusUnset TraceSpanDetailsResponseStatus = "unset" )
Defines values for TraceSpanDetailsResponseStatus.
type TraceSpansQueryResponse ¶
type TraceSpansQueryResponse struct {
// Spans The list of spans
Spans *[]struct {
// Attributes The span attributes
Attributes *map[string]interface{} `json:"attributes,omitempty"`
// DurationNs The duration of the span in nanoseconds
DurationNs *int64 `json:"durationNs,omitempty"`
// EndTime The end time of the span
EndTime *time.Time `json:"endTime,omitempty"`
// ParentSpanId The parent span ID
ParentSpanId *string `json:"parentSpanId,omitempty"`
// ResourceAttributes The resource attributes
ResourceAttributes *map[string]interface{} `json:"resourceAttributes,omitempty"`
// SpanId The span ID
SpanId *string `json:"spanId,omitempty"`
// SpanKind The name of the span
SpanKind *string `json:"spanKind,omitempty"`
// SpanName The name of the span
SpanName *string `json:"spanName,omitempty"`
// StartTime The start time of the span
StartTime *time.Time `json:"startTime,omitempty"`
// Status The execution status of the span. One of "ok", "error", or "unset".
Status *TraceSpansQueryResponseSpansStatus `json:"status,omitempty"`
} `json:"spans,omitempty"`
// TookMs The time taken to query the spans in milliseconds
TookMs *int `json:"tookMs,omitempty"`
// Total The total number of matching spans, capped at 1000
Total *int `json:"total,omitempty"`
}
TraceSpansQueryResponse defines model for TraceSpansQueryResponse.
type TraceSpansQueryResponseSpansStatus ¶ added in v1.0.1
type TraceSpansQueryResponseSpansStatus string
TraceSpansQueryResponseSpansStatus The execution status of the span. One of "ok", "error", or "unset".
const ( Error TraceSpansQueryResponseSpansStatus = "error" Ok TraceSpansQueryResponseSpansStatus = "ok" Unset TraceSpansQueryResponseSpansStatus = "unset" )
Defines values for TraceSpansQueryResponseSpansStatus.
type TracesQueryRequest ¶
type TracesQueryRequest struct {
// EndTime The end time of the query
EndTime time.Time `json:"endTime"`
// IncludeAttributes Whether to include span attributes in the response. Defaults to false.
IncludeAttributes *bool `json:"includeAttributes,omitempty"`
// Limit The maximum number of items to return
Limit *int `json:"limit,omitempty"`
SearchScope ComponentSearchScope `json:"searchScope"`
// SortOrder The sort order of the query
SortOrder *TracesQueryRequestSortOrder `json:"sortOrder,omitempty"`
// StartTime The start time of the query
StartTime time.Time `json:"startTime"`
}
TracesQueryRequest defines model for TracesQueryRequest.
type TracesQueryRequestSortOrder ¶ added in v1.0.0
type TracesQueryRequestSortOrder string
TracesQueryRequestSortOrder The sort order of the query
const ( TracesQueryRequestSortOrderAsc TracesQueryRequestSortOrder = "asc" TracesQueryRequestSortOrderDesc TracesQueryRequestSortOrder = "desc" )
Defines values for TracesQueryRequestSortOrder.
type TracesQueryResponse ¶
type TracesQueryResponse struct {
// TookMs The time taken to query the traces in milliseconds
TookMs *int `json:"tookMs,omitempty"`
// Total The total number of matching traces, capped at 1000
Total *int `json:"total,omitempty"`
// Traces The list of traces
Traces *[]struct {
// DurationNs The duration of the trace in nanoseconds
DurationNs *int64 `json:"durationNs,omitempty"`
// EndTime The end time of the trace
EndTime *time.Time `json:"endTime,omitempty"`
// HasErrors Whether any span in the trace has an error status.
HasErrors *bool `json:"hasErrors,omitempty"`
RootSpanId *string `json:"rootSpanId,omitempty"`
RootSpanKind *string `json:"rootSpanKind,omitempty"`
RootSpanName *string `json:"rootSpanName,omitempty"`
// SpanCount The number of spans in the trace
SpanCount *int `json:"spanCount,omitempty"`
// StartTime The start time of the trace
StartTime *time.Time `json:"startTime,omitempty"`
// TraceId The trace ID
TraceId *string `json:"traceId,omitempty"`
// TraceName The name of the trace
TraceName *string `json:"traceName,omitempty"`
} `json:"traces,omitempty"`
}
TracesQueryResponse defines model for TracesQueryResponse.
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UpdateAlertRule200JSONResponse ¶
type UpdateAlertRule200JSONResponse AlertingRuleSyncResponse
func (UpdateAlertRule200JSONResponse) VisitUpdateAlertRuleResponse ¶
func (response UpdateAlertRule200JSONResponse) VisitUpdateAlertRuleResponse(w http.ResponseWriter) error
type UpdateAlertRule400JSONResponse ¶
type UpdateAlertRule400JSONResponse ErrorResponse
func (UpdateAlertRule400JSONResponse) VisitUpdateAlertRuleResponse ¶
func (response UpdateAlertRule400JSONResponse) VisitUpdateAlertRuleResponse(w http.ResponseWriter) error
type UpdateAlertRule500JSONResponse ¶
type UpdateAlertRule500JSONResponse ErrorResponse
func (UpdateAlertRule500JSONResponse) VisitUpdateAlertRuleResponse ¶
func (response UpdateAlertRule500JSONResponse) VisitUpdateAlertRuleResponse(w http.ResponseWriter) error
type UpdateAlertRuleJSONRequestBody ¶
type UpdateAlertRuleJSONRequestBody = AlertRuleRequest
UpdateAlertRuleJSONRequestBody defines body for UpdateAlertRule for application/json ContentType.
type UpdateAlertRuleRequestObject ¶
type UpdateAlertRuleRequestObject struct {
SourceType string `json:"sourceType"`
RuleName string `json:"ruleName"`
Body *UpdateAlertRuleJSONRequestBody
}
type UpdateAlertRuleResp ¶
type UpdateAlertRuleResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AlertingRuleSyncResponse
JSON400 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseUpdateAlertRuleResp ¶
func ParseUpdateAlertRuleResp(rsp *http.Response) (*UpdateAlertRuleResp, error)
ParseUpdateAlertRuleResp parses an HTTP response from a UpdateAlertRuleWithResponse call
func (UpdateAlertRuleResp) Status ¶
func (r UpdateAlertRuleResp) Status() string
Status returns HTTPResponse.Status
func (UpdateAlertRuleResp) StatusCode ¶
func (r UpdateAlertRuleResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateAlertRuleResponseObject ¶
type UpdateAlertRuleResponseObject interface {
VisitUpdateAlertRuleResponse(w http.ResponseWriter) error
}
type UpdateIncident200JSONResponse ¶ added in v1.0.0
type UpdateIncident200JSONResponse IncidentPutResponse
func (UpdateIncident200JSONResponse) VisitUpdateIncidentResponse ¶ added in v1.0.0
func (response UpdateIncident200JSONResponse) VisitUpdateIncidentResponse(w http.ResponseWriter) error
type UpdateIncident400JSONResponse ¶ added in v1.0.0
type UpdateIncident400JSONResponse ErrorResponse
func (UpdateIncident400JSONResponse) VisitUpdateIncidentResponse ¶ added in v1.0.0
func (response UpdateIncident400JSONResponse) VisitUpdateIncidentResponse(w http.ResponseWriter) error
type UpdateIncident401JSONResponse ¶ added in v1.0.0
type UpdateIncident401JSONResponse ErrorResponse
func (UpdateIncident401JSONResponse) VisitUpdateIncidentResponse ¶ added in v1.0.0
func (response UpdateIncident401JSONResponse) VisitUpdateIncidentResponse(w http.ResponseWriter) error
type UpdateIncident403JSONResponse ¶ added in v1.0.0
type UpdateIncident403JSONResponse ErrorResponse
func (UpdateIncident403JSONResponse) VisitUpdateIncidentResponse ¶ added in v1.0.0
func (response UpdateIncident403JSONResponse) VisitUpdateIncidentResponse(w http.ResponseWriter) error
type UpdateIncident404JSONResponse ¶ added in v1.0.0
type UpdateIncident404JSONResponse ErrorResponse
func (UpdateIncident404JSONResponse) VisitUpdateIncidentResponse ¶ added in v1.0.0
func (response UpdateIncident404JSONResponse) VisitUpdateIncidentResponse(w http.ResponseWriter) error
type UpdateIncident500JSONResponse ¶ added in v1.0.0
type UpdateIncident500JSONResponse ErrorResponse
func (UpdateIncident500JSONResponse) VisitUpdateIncidentResponse ¶ added in v1.0.0
func (response UpdateIncident500JSONResponse) VisitUpdateIncidentResponse(w http.ResponseWriter) error
type UpdateIncidentJSONRequestBody ¶ added in v1.0.0
type UpdateIncidentJSONRequestBody = IncidentPutRequest
UpdateIncidentJSONRequestBody defines body for UpdateIncident for application/json ContentType.
type UpdateIncidentRequestObject ¶ added in v1.0.0
type UpdateIncidentRequestObject struct {
IncidentId string `json:"incidentId"`
Body *UpdateIncidentJSONRequestBody
}
type UpdateIncidentResp ¶ added in v1.0.0
type UpdateIncidentResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *IncidentPutResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseUpdateIncidentResp ¶ added in v1.0.0
func ParseUpdateIncidentResp(rsp *http.Response) (*UpdateIncidentResp, error)
ParseUpdateIncidentResp parses an HTTP response from a UpdateIncidentWithResponse call
func (UpdateIncidentResp) Status ¶ added in v1.0.0
func (r UpdateIncidentResp) Status() string
Status returns HTTPResponse.Status
func (UpdateIncidentResp) StatusCode ¶ added in v1.0.0
func (r UpdateIncidentResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateIncidentResponseObject ¶ added in v1.0.0
type UpdateIncidentResponseObject interface {
VisitUpdateIncidentResponse(w http.ResponseWriter) error
}
type WorkflowLogEntry ¶
type WorkflowLogEntry struct {
// Log The log message
Log *string `json:"log,omitempty"`
// Timestamp The timestamp of the log entry
Timestamp *time.Time `json:"timestamp,omitempty"`
}
WorkflowLogEntry defines model for WorkflowLogEntry.
type WorkflowSearchScope ¶
type WorkflowSearchScope struct {
Namespace string `json:"namespace"`
TaskName *string `json:"taskName,omitempty"`
WorkflowRunName *string `json:"workflowRunName,omitempty"`
}
WorkflowSearchScope defines model for WorkflowSearchScope.