request

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlignedMetricRunRequest added in v0.4.0

type AlignedMetricRunRequest struct {
	ID     string                      `json:"run_id"`
	Traces []AlignedMetricTraceRequest `json:"traces"`
}

AlignedMetricRunRequest is a partial request object for GetAlignedMetricRequest

type AlignedMetricTraceRequest added in v0.4.0

type AlignedMetricTraceRequest struct {
	Context fiber.Map `json:"context"`
	Name    string    `json:"name"`
	Slice   []int     `json:"slice"`
}

AlignedMetricTraceRequest is a partial request object for AlignedMetricRunRequest

type AppState added in v0.3.0

type AppState map[string]any

AppState represents key/value state data

type CreateApp added in v0.3.0

type CreateApp struct {
	Type  string   `json:"type"`
	State AppState `json:"state"`
}

CreateApp represents the data to create an App

type CreateDashboard added in v0.3.0

type CreateDashboard struct {
	AppID       uuid.UUID `json:"app_id"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
}

CreateDashboard represents the data to create a Dashboard

type GetAlignedMetricRequest added in v0.4.0

type GetAlignedMetricRequest struct {
	Runs    []AlignedMetricRunRequest `json:"runs"`
	AlignBy string                    `json:"align_by"`
}

GetAlignedMetricRequest is a request object for `GET /search/metrics/align` endpoint.

type GetRunMetric added in v0.3.0

type GetRunMetric struct {
	Context map[string]string `json:"context"`
	Name    string            `json:"name"`
}

GetRunMetric is one element of GetRunMetricsRequest

type GetRunMetrics added in v0.3.0

type GetRunMetrics []GetRunMetric

GetRunMetrics is a request struct for `POST /runs/:id/metric/get-batch`

type SearchMetricsRequest added in v0.4.0

type SearchMetricsRequest struct {
	Query          string `query:"q"`
	Steps          int    `query:"p"`
	XAxis          string `query:"x_axis"`
	SkipSystem     bool   `query:"skip_system"`
	ReportProgress bool   `query:"report_progress"`
}

SearchMetricsRequest is a request struct for `GET /runs/search/metric/` endpoint.

type SearchRunsRequest added in v0.3.1

type SearchRunsRequest struct {
	Query           string   `query:"q"`
	Limit           int      `query:"limit"`
	Offset          string   `query:"offset"`
	Action          string   `query:"action"`
	SkipSystem      bool     `query:"skip_system"`
	ReportProgress  bool     `query:"report_progress"`
	ExcludeParams   bool     `query:"exclude_params"`
	ExcludeTraces   bool     `query:"exclude_traces"`
	ExperimentNames []string `query:"experiment_names"`
}

type UpdateApp added in v0.3.0

type UpdateApp struct {
	Type  string   `json:"type"`
	State AppState `json:"state"`
}

UpdateApp represents the data to update an App

type UpdateDashboard added in v0.3.0

type UpdateDashboard struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

UpdateDashboard represents the data to update a Dashboard

type UpdateExperimentRequest added in v0.4.0

type UpdateExperimentRequest struct {
	Name        *string `json:"name"`
	Description *string `json:"description"`
	Archived    *bool   `json:"archived"`
}

UpdateExperimentRequest is a request struct for `PUT /experiments/:id` endpoint.

type UpdateRunRequest added in v0.3.0

type UpdateRunRequest struct {
	RunID       *string `json:"run_id"`
	RunUUID     *string `json:"run_uuid"`
	Name        *string `json:"run_name"`
	Description *string `json:"description"`
	Status      *string `json:"status"`
	EndTime     *int64  `json:"end_time"`
	Archived    *bool   `json:"archived"`
}

UpdateRunRequest is a request struct for `PUT /runs/:id` endpoint.

Jump to

Keyboard shortcuts

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