bff

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const CreateDebugDashboard_Operation = `` /* 376-byte string literal not displayed */

The mutation executed by CreateDebugDashboard.

View Source
const GetDashboard_Operation = `
query GetDashboard ($id: String!) {
	dashboard(id: $id) {
		id
		name
		isStale
		lastRanAt
	}
}
`

The query executed by GetDashboard.

View Source
const UpdateMetricsConfig_Operation = `` /* 237-byte string literal not displayed */

The mutation executed by UpdateMetricsConfig.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateDebugDashboardCreateDebugDashboard added in v0.47.0

type CreateDebugDashboardCreateDebugDashboard struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

CreateDebugDashboardCreateDebugDashboard includes the requested fields of the GraphQL type Dashboard.

func (*CreateDebugDashboardCreateDebugDashboard) GetId added in v0.47.0

GetId returns CreateDebugDashboardCreateDebugDashboard.Id, and is useful for accessing the field via an interface.

func (*CreateDebugDashboardCreateDebugDashboard) GetName added in v0.47.0

GetName returns CreateDebugDashboardCreateDebugDashboard.Name, and is useful for accessing the field via an interface.

type CreateDebugDashboardResponse added in v0.47.0

type CreateDebugDashboardResponse struct {
	// Create a debug dashboard from uploaded emissions and config
	CreateDebugDashboard CreateDebugDashboardCreateDebugDashboard `json:"createDebugDashboard"`
}

CreateDebugDashboardResponse is returned by CreateDebugDashboard on success.

func CreateDebugDashboard added in v0.47.0

func CreateDebugDashboard(
	ctx_ context.Context,
	client_ graphql.Client,
	projectId string,
	config string,
	templateFiles []MetricsTemplate,
	emissionsFile string,
	branchId string,
	metricsSetName string,
) (data_ *CreateDebugDashboardResponse, err_ error)

func (*CreateDebugDashboardResponse) GetCreateDebugDashboard added in v0.47.0

GetCreateDebugDashboard returns CreateDebugDashboardResponse.CreateDebugDashboard, and is useful for accessing the field via an interface.

type GetDashboardDashboard added in v0.47.0

type GetDashboardDashboard struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	IsStale   bool   `json:"isStale"`
	LastRanAt string `json:"lastRanAt"`
}

GetDashboardDashboard includes the requested fields of the GraphQL type Dashboard.

func (*GetDashboardDashboard) GetId added in v0.47.0

func (v *GetDashboardDashboard) GetId() string

GetId returns GetDashboardDashboard.Id, and is useful for accessing the field via an interface.

func (*GetDashboardDashboard) GetIsStale added in v0.47.0

func (v *GetDashboardDashboard) GetIsStale() bool

GetIsStale returns GetDashboardDashboard.IsStale, and is useful for accessing the field via an interface.

func (*GetDashboardDashboard) GetLastRanAt added in v0.47.0

func (v *GetDashboardDashboard) GetLastRanAt() string

GetLastRanAt returns GetDashboardDashboard.LastRanAt, and is useful for accessing the field via an interface.

func (*GetDashboardDashboard) GetName added in v0.47.0

func (v *GetDashboardDashboard) GetName() string

GetName returns GetDashboardDashboard.Name, and is useful for accessing the field via an interface.

type GetDashboardResponse added in v0.47.0

type GetDashboardResponse struct {
	// Get a single dashboard by ID
	Dashboard GetDashboardDashboard `json:"dashboard"`
}

GetDashboardResponse is returned by GetDashboard on success.

func GetDashboard added in v0.47.0

func GetDashboard(
	ctx_ context.Context,
	client_ graphql.Client,
	id string,
) (data_ *GetDashboardResponse, err_ error)

func (*GetDashboardResponse) GetDashboard added in v0.47.0

func (v *GetDashboardResponse) GetDashboard() GetDashboardDashboard

GetDashboard returns GetDashboardResponse.Dashboard, and is useful for accessing the field via an interface.

type MetricsTemplate

type MetricsTemplate struct {
	Contents string `json:"contents"`
	Name     string `json:"name"`
}

func (*MetricsTemplate) GetContents

func (v *MetricsTemplate) GetContents() string

GetContents returns MetricsTemplate.Contents, and is useful for accessing the field via an interface.

func (*MetricsTemplate) GetName

func (v *MetricsTemplate) GetName() string

GetName returns MetricsTemplate.Name, and is useful for accessing the field via an interface.

type UpdateMetricsConfigResponse

type UpdateMetricsConfigResponse struct {
	// Update metrics config with the given configuration
	UpdateMetricsConfig string `json:"updateMetricsConfig"`
}

UpdateMetricsConfigResponse is returned by UpdateMetricsConfig on success.

func UpdateMetricsConfig

func UpdateMetricsConfig(
	ctx_ context.Context,
	client_ graphql.Client,
	projectId string,
	config string,
	templateFiles []MetricsTemplate,
	branch string,
) (data_ *UpdateMetricsConfigResponse, err_ error)

func (*UpdateMetricsConfigResponse) GetUpdateMetricsConfig

func (v *UpdateMetricsConfigResponse) GetUpdateMetricsConfig() string

GetUpdateMetricsConfig returns UpdateMetricsConfigResponse.UpdateMetricsConfig, and is useful for accessing the field via an interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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