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 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 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 PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type AlertRuleRequest
- type AlertRuleRequestConditionOperator
- type AlertRuleRequestSourceMetric
- type AlertRuleRequestSourceType
- type AlertRuleResponse
- type AlertWebhookRequest
- type AlertWebhookResponse
- type AlertWebhookResponseStatus
- type AlertingRuleSyncResponse
- type AlertingRuleSyncResponseAction
- type AlertingRuleSyncResponseStatus
- 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) 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) 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)
- 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) 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) 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)
- 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 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 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 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 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) QueryLogs(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) QueryMetrics(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)
- type StdHTTPServerOptions
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type TooManyValuesForParamError
- type TraceSpanDetailsResponse
- type TraceSpansQueryResponse
- type TracesQueryRequest
- type TracesQueryRequestSort
- type TracesQueryResponse
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type UpdateAlertRule200JSONResponse
- type UpdateAlertRule400JSONResponse
- type UpdateAlertRule500JSONResponse
- type UpdateAlertRuleJSONRequestBody
- type UpdateAlertRuleRequestObject
- type UpdateAlertRuleResp
- type UpdateAlertRuleResponseObject
- 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 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 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
Types ¶
type AlertRuleRequest ¶
type AlertRuleRequest 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 *AlertRuleRequestConditionOperator `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 *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,omitempty"`
} `json:"source,omitempty"`
}
AlertRuleRequest defines model for AlertRuleRequest.
type AlertRuleRequestConditionOperator ¶
type AlertRuleRequestConditionOperator string
AlertRuleRequestConditionOperator The operator to use for the alert rule
const ( Eq AlertRuleRequestConditionOperator = "eq" Gt AlertRuleRequestConditionOperator = "gt" Gte AlertRuleRequestConditionOperator = "gte" Lt AlertRuleRequestConditionOperator = "lt" Lte AlertRuleRequestConditionOperator = "lte" Neq AlertRuleRequestConditionOperator = "neq" )
Defines values for AlertRuleRequestConditionOperator.
type AlertRuleRequestSourceMetric ¶
type AlertRuleRequestSourceMetric string
AlertRuleRequestSourceMetric The metric to query for metric based alerts
const ( CpuUsage AlertRuleRequestSourceMetric = "cpu_usage" MemoryUsage AlertRuleRequestSourceMetric = "memory_usage" )
Defines values for AlertRuleRequestSourceMetric.
type AlertRuleRequestSourceType ¶
type AlertRuleRequestSourceType string
AlertRuleRequestSourceType The type of the source
const ( Log AlertRuleRequestSourceType = "log" Metric AlertRuleRequestSourceType = "metric" )
Defines values for AlertRuleRequestSourceType.
type AlertRuleResponse ¶
type AlertRuleResponse struct {
// 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"`
}
AlertRuleResponse defines model for AlertRuleResponse.
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 ( Error AlertWebhookResponseStatus = "error" Success 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 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) 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) 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)
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)
// 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)
// 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) 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) 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)
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)
// 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)
// 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 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 logs queried
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 ( Http MetricsQueryRequestMetric = "http" Resource 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 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 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 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)
// 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 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) 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) 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
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)
// 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 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 *float32 `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"`
// SpanName The name of the span
SpanName *string `json:"spanName,omitempty"`
// StartTime The start time of the span
StartTime *time.Time `json:"startTime,omitempty"`
}
TraceSpanDetailsResponse defines model for TraceSpanDetailsResponse.
type TraceSpansQueryResponse ¶
type TraceSpansQueryResponse struct {
// Spans The list of spans
Spans *[]struct {
// DurationNs The duration of the span in nanoseconds
DurationNs *float32 `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 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"`
} `json:"spans,omitempty"`
// TookMs The time taken to query the spans in milliseconds
TookMs *int `json:"tookMs,omitempty"`
// Total The total number of spans
Total *int `json:"total,omitempty"`
}
TraceSpansQueryResponse defines model for TraceSpansQueryResponse.
type TracesQueryRequest ¶
type TracesQueryRequest 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"`
// Sort The sort order of the query
Sort *TracesQueryRequestSort `json:"sort,omitempty"`
// StartTime The start time of the query
StartTime time.Time `json:"startTime"`
}
TracesQueryRequest defines model for TracesQueryRequest.
type TracesQueryRequestSort ¶
type TracesQueryRequestSort string
TracesQueryRequestSort The sort order of the query
const ( TracesQueryRequestSortAsc TracesQueryRequestSort = "asc" TracesQueryRequestSortDesc TracesQueryRequestSort = "desc" )
Defines values for TracesQueryRequestSort.
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 traces
Total *int `json:"total,omitempty"`
// Traces The list of traces
Traces *[]struct {
// DurationNs The duration of the trace in nanoseconds
DurationNs *float32 `json:"durationNs,omitempty"`
// EndTime The end time of the trace
EndTime *time.Time `json:"endTime,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 WorkflowLogEntry ¶
type WorkflowLogEntry struct {
// Log The log message
Log *string `json:"log,omitempty"`
// Metadata The metadata of the log entry
Metadata *map[string]interface{} `json:"metadata,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.