topnschema

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2026 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package topnschema defines the _top_n_result measure every measure group gets. It only depends on the API types, so clients can predict the measure the server creates.

Index

Constants

View Source
const (
	// Name is the name of the top n result measure.
	Name = "_top_n_result"
	// TagFamily is the tag family name of the top n result measure.
	TagFamily = "_topN"
	// FieldName is the field name of the top n result measure.
	FieldName = "value"
)

Variables

View Source
var TagNames = []string{"name", "direction", "group", "parameters"}

TagNames are the tag names of the top n result measure, its entity in this order.

Functions

func Measure

func Measure(md *commonv1.Metadata) *databasev1.Measure

Measure returns the top n result measure the server creates with md.

func Metadata

func Metadata(group string) *commonv1.Metadata

Metadata returns the metadata of the top n result measure of a group.

Types

This section is empty.

Jump to

Keyboard shortcuts

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