metric

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the metric type in the database.
	Label = "metric"
	// FieldID holds the string denoting the id field in the database.
	FieldID    = "id"    // FieldTitle holds the string denoting the title vertex property in the database.
	FieldTitle = "title" // FieldType holds the string denoting the type vertex property in the database.
	FieldType  = "type"

	// EdgeGraph holds the string denoting the graph edge name in mutations.
	EdgeGraph = "graph"
	// EdgeHistograms holds the string denoting the histograms edge name in mutations.
	EdgeHistograms = "histograms"
	// EdgeCounters holds the string denoting the counters edge name in mutations.
	EdgeCounters = "counters"
	// EdgeGauges holds the string denoting the gauges edge name in mutations.
	EdgeGauges = "gauges"

	// Table holds the table name of the metric in the database.
	Table = "metrics"
	// GraphTable is the table the holds the graph relation/edge.
	GraphTable = "metrics"
	// GraphInverseTable is the table name for the Graph entity.
	// It exists in this package in order to avoid circular dependency with the "graph" package.
	GraphInverseTable = "graphs"
	// GraphColumn is the table column denoting the graph relation/edge.
	GraphColumn = "graph_metrics"
	// HistogramsTable is the table the holds the histograms relation/edge.
	HistogramsTable = "histograms"
	// HistogramsInverseTable is the table name for the Histogram entity.
	// It exists in this package in order to avoid circular dependency with the "histogram" package.
	HistogramsInverseTable = "histograms"
	// HistogramsColumn is the table column denoting the histograms relation/edge.
	HistogramsColumn = "metric_histograms"
	// CountersTable is the table the holds the counters relation/edge.
	CountersTable = "counters"
	// CountersInverseTable is the table name for the Counter entity.
	// It exists in this package in order to avoid circular dependency with the "counter" package.
	CountersInverseTable = "counters"
	// CountersColumn is the table column denoting the counters relation/edge.
	CountersColumn = "metric_counters"
	// GaugesTable is the table the holds the gauges relation/edge.
	GaugesTable = "gauges"
	// GaugesInverseTable is the table name for the Gauge entity.
	// It exists in this package in order to avoid circular dependency with the "gauge" package.
	GaugesInverseTable = "gauges"
	// GaugesColumn is the table column denoting the gauges relation/edge.
	GaugesColumn = "metric_gauges"
)

Variables

Columns holds all SQL columns for metric fields.

View Source
var ForeignKeys = []string{
	"graph_metrics",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Metric type.

Functions

func And

func And(predicates ...predicate.Metric) predicate.Metric

And groups list of predicates with the AND operator between them.

func HasCounters

func HasCounters() predicate.Metric

HasCounters applies the HasEdge predicate on the "counters" edge.

func HasCountersWith

func HasCountersWith(preds ...predicate.Counter) predicate.Metric

HasCountersWith applies the HasEdge predicate on the "counters" edge with a given conditions (other predicates).

func HasGauges

func HasGauges() predicate.Metric

HasGauges applies the HasEdge predicate on the "gauges" edge.

func HasGaugesWith

func HasGaugesWith(preds ...predicate.Gauge) predicate.Metric

HasGaugesWith applies the HasEdge predicate on the "gauges" edge with a given conditions (other predicates).

func HasGraph

func HasGraph() predicate.Metric

HasGraph applies the HasEdge predicate on the "graph" edge.

func HasGraphWith

func HasGraphWith(preds ...predicate.Graph) predicate.Metric

HasGraphWith applies the HasEdge predicate on the "graph" edge with a given conditions (other predicates).

func HasHistograms

func HasHistograms() predicate.Metric

HasHistograms applies the HasEdge predicate on the "histograms" edge.

func HasHistogramsWith

func HasHistogramsWith(preds ...predicate.Histogram) predicate.Metric

HasHistogramsWith applies the HasEdge predicate on the "histograms" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Metric

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Metric

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Metric

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Metric

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Metric

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Metric

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Metric

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Metric

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Metric

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Metric) predicate.Metric

Or groups list of predicates with the OR operator between them.

func Title

func Title(v string) predicate.Metric

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Metric

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Metric

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Metric

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Metric

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Metric

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Metric

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Metric

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Metric

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Metric

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Metric

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Metric

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Metric

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Metric

TitleNotIn applies the NotIn predicate on the "title" field.

func Type

func Type(v string) predicate.Metric

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.Metric

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.Metric

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.Metric

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.Metric

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.Metric

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.Metric

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.Metric

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.Metric

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.Metric

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.Metric

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.Metric

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.Metric

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.Metric

TypeNotIn applies the NotIn predicate on the "type" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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