metrics

package
Version: v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the metrics type in the database.
	Label = "metrics"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNamespace holds the string denoting the namespace field in the database.
	FieldNamespace = "namespace"
	// FieldWorkflow holds the string denoting the workflow field in the database.
	FieldWorkflow = "workflow"
	// FieldInstance holds the string denoting the instance field in the database.
	FieldInstance = "instance"
	// FieldState holds the string denoting the state field in the database.
	FieldState = "state"
	// FieldTimestamp holds the string denoting the timestamp field in the database.
	FieldTimestamp = "timestamp"
	// FieldWorkflowMs holds the string denoting the workflow_ms field in the database.
	FieldWorkflowMs = "workflow_ms"
	// FieldIsolateMs holds the string denoting the isolate_ms field in the database.
	FieldIsolateMs = "isolate_ms"
	// FieldErrorCode holds the string denoting the error_code field in the database.
	FieldErrorCode = "error_code"
	// FieldInvoker holds the string denoting the invoker field in the database.
	FieldInvoker = "invoker"
	// FieldNext holds the string denoting the next field in the database.
	FieldNext = "next"
	// FieldTransition holds the string denoting the transition field in the database.
	FieldTransition = "transition"
	// Table holds the table name of the metrics in the database.
	Table = "metrics"
)

Variables

View Source
var (
	// NamespaceValidator is a validator for the "namespace" field. It is called by the builders before save.
	NamespaceValidator func(string) error
	// WorkflowValidator is a validator for the "workflow" field. It is called by the builders before save.
	WorkflowValidator func(string) error
	// InstanceValidator is a validator for the "instance" field. It is called by the builders before save.
	InstanceValidator func(string) error
	// StateValidator is a validator for the "state" field. It is called by the builders before save.
	StateValidator func(string) error
	// WorkflowMsValidator is a validator for the "workflow_ms" field. It is called by the builders before save.
	WorkflowMsValidator func(int64) error
	// IsolateMsValidator is a validator for the "isolate_ms" field. It is called by the builders before save.
	IsolateMsValidator func(int64) error
	// NextValidator is a validator for the "next" field. It is called by the builders before save.
	NextValidator func(int8) error
)

Columns holds all SQL columns for metrics fields.

Functions

func And

func And(predicates ...predicate.Metrics) predicate.Metrics

And groups predicates with the AND operator between them.

func ErrorCode

func ErrorCode(v string) predicate.Metrics

ErrorCode applies equality check predicate on the "error_code" field. It's identical to ErrorCodeEQ.

func ErrorCodeContains

func ErrorCodeContains(v string) predicate.Metrics

ErrorCodeContains applies the Contains predicate on the "error_code" field.

func ErrorCodeContainsFold

func ErrorCodeContainsFold(v string) predicate.Metrics

ErrorCodeContainsFold applies the ContainsFold predicate on the "error_code" field.

func ErrorCodeEQ

func ErrorCodeEQ(v string) predicate.Metrics

ErrorCodeEQ applies the EQ predicate on the "error_code" field.

func ErrorCodeEqualFold

func ErrorCodeEqualFold(v string) predicate.Metrics

ErrorCodeEqualFold applies the EqualFold predicate on the "error_code" field.

func ErrorCodeGT

func ErrorCodeGT(v string) predicate.Metrics

ErrorCodeGT applies the GT predicate on the "error_code" field.

func ErrorCodeGTE

func ErrorCodeGTE(v string) predicate.Metrics

ErrorCodeGTE applies the GTE predicate on the "error_code" field.

func ErrorCodeHasPrefix

func ErrorCodeHasPrefix(v string) predicate.Metrics

ErrorCodeHasPrefix applies the HasPrefix predicate on the "error_code" field.

func ErrorCodeHasSuffix

func ErrorCodeHasSuffix(v string) predicate.Metrics

ErrorCodeHasSuffix applies the HasSuffix predicate on the "error_code" field.

func ErrorCodeIn

func ErrorCodeIn(vs ...string) predicate.Metrics

ErrorCodeIn applies the In predicate on the "error_code" field.

func ErrorCodeIsNil

func ErrorCodeIsNil() predicate.Metrics

ErrorCodeIsNil applies the IsNil predicate on the "error_code" field.

func ErrorCodeLT

func ErrorCodeLT(v string) predicate.Metrics

ErrorCodeLT applies the LT predicate on the "error_code" field.

func ErrorCodeLTE

func ErrorCodeLTE(v string) predicate.Metrics

ErrorCodeLTE applies the LTE predicate on the "error_code" field.

func ErrorCodeNEQ

func ErrorCodeNEQ(v string) predicate.Metrics

ErrorCodeNEQ applies the NEQ predicate on the "error_code" field.

func ErrorCodeNotIn

func ErrorCodeNotIn(vs ...string) predicate.Metrics

ErrorCodeNotIn applies the NotIn predicate on the "error_code" field.

func ErrorCodeNotNil

func ErrorCodeNotNil() predicate.Metrics

ErrorCodeNotNil applies the NotNil predicate on the "error_code" field.

func ID

func ID(id int) predicate.Metrics

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Metrics

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Metrics

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Metrics

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Metrics

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Metrics

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Metrics

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Instance

func Instance(v string) predicate.Metrics

Instance applies equality check predicate on the "instance" field. It's identical to InstanceEQ.

func InstanceContains

func InstanceContains(v string) predicate.Metrics

InstanceContains applies the Contains predicate on the "instance" field.

func InstanceContainsFold

func InstanceContainsFold(v string) predicate.Metrics

InstanceContainsFold applies the ContainsFold predicate on the "instance" field.

func InstanceEQ

func InstanceEQ(v string) predicate.Metrics

InstanceEQ applies the EQ predicate on the "instance" field.

func InstanceEqualFold

func InstanceEqualFold(v string) predicate.Metrics

InstanceEqualFold applies the EqualFold predicate on the "instance" field.

func InstanceGT

func InstanceGT(v string) predicate.Metrics

InstanceGT applies the GT predicate on the "instance" field.

func InstanceGTE

func InstanceGTE(v string) predicate.Metrics

InstanceGTE applies the GTE predicate on the "instance" field.

func InstanceHasPrefix

func InstanceHasPrefix(v string) predicate.Metrics

InstanceHasPrefix applies the HasPrefix predicate on the "instance" field.

func InstanceHasSuffix

func InstanceHasSuffix(v string) predicate.Metrics

InstanceHasSuffix applies the HasSuffix predicate on the "instance" field.

func InstanceIn

func InstanceIn(vs ...string) predicate.Metrics

InstanceIn applies the In predicate on the "instance" field.

func InstanceLT

func InstanceLT(v string) predicate.Metrics

InstanceLT applies the LT predicate on the "instance" field.

func InstanceLTE

func InstanceLTE(v string) predicate.Metrics

InstanceLTE applies the LTE predicate on the "instance" field.

func InstanceNEQ

func InstanceNEQ(v string) predicate.Metrics

InstanceNEQ applies the NEQ predicate on the "instance" field.

func InstanceNotIn

func InstanceNotIn(vs ...string) predicate.Metrics

InstanceNotIn applies the NotIn predicate on the "instance" field.

func Invoker

func Invoker(v string) predicate.Metrics

Invoker applies equality check predicate on the "invoker" field. It's identical to InvokerEQ.

func InvokerContains

func InvokerContains(v string) predicate.Metrics

InvokerContains applies the Contains predicate on the "invoker" field.

func InvokerContainsFold

func InvokerContainsFold(v string) predicate.Metrics

InvokerContainsFold applies the ContainsFold predicate on the "invoker" field.

func InvokerEQ

func InvokerEQ(v string) predicate.Metrics

InvokerEQ applies the EQ predicate on the "invoker" field.

func InvokerEqualFold

func InvokerEqualFold(v string) predicate.Metrics

InvokerEqualFold applies the EqualFold predicate on the "invoker" field.

func InvokerGT

func InvokerGT(v string) predicate.Metrics

InvokerGT applies the GT predicate on the "invoker" field.

func InvokerGTE

func InvokerGTE(v string) predicate.Metrics

InvokerGTE applies the GTE predicate on the "invoker" field.

func InvokerHasPrefix

func InvokerHasPrefix(v string) predicate.Metrics

InvokerHasPrefix applies the HasPrefix predicate on the "invoker" field.

func InvokerHasSuffix

func InvokerHasSuffix(v string) predicate.Metrics

InvokerHasSuffix applies the HasSuffix predicate on the "invoker" field.

func InvokerIn

func InvokerIn(vs ...string) predicate.Metrics

InvokerIn applies the In predicate on the "invoker" field.

func InvokerLT

func InvokerLT(v string) predicate.Metrics

InvokerLT applies the LT predicate on the "invoker" field.

func InvokerLTE

func InvokerLTE(v string) predicate.Metrics

InvokerLTE applies the LTE predicate on the "invoker" field.

func InvokerNEQ

func InvokerNEQ(v string) predicate.Metrics

InvokerNEQ applies the NEQ predicate on the "invoker" field.

func InvokerNotIn

func InvokerNotIn(vs ...string) predicate.Metrics

InvokerNotIn applies the NotIn predicate on the "invoker" field.

func IsolateMs

func IsolateMs(v int64) predicate.Metrics

IsolateMs applies equality check predicate on the "isolate_ms" field. It's identical to IsolateMsEQ.

func IsolateMsEQ

func IsolateMsEQ(v int64) predicate.Metrics

IsolateMsEQ applies the EQ predicate on the "isolate_ms" field.

func IsolateMsGT

func IsolateMsGT(v int64) predicate.Metrics

IsolateMsGT applies the GT predicate on the "isolate_ms" field.

func IsolateMsGTE

func IsolateMsGTE(v int64) predicate.Metrics

IsolateMsGTE applies the GTE predicate on the "isolate_ms" field.

func IsolateMsIn

func IsolateMsIn(vs ...int64) predicate.Metrics

IsolateMsIn applies the In predicate on the "isolate_ms" field.

func IsolateMsLT

func IsolateMsLT(v int64) predicate.Metrics

IsolateMsLT applies the LT predicate on the "isolate_ms" field.

func IsolateMsLTE

func IsolateMsLTE(v int64) predicate.Metrics

IsolateMsLTE applies the LTE predicate on the "isolate_ms" field.

func IsolateMsNEQ

func IsolateMsNEQ(v int64) predicate.Metrics

IsolateMsNEQ applies the NEQ predicate on the "isolate_ms" field.

func IsolateMsNotIn

func IsolateMsNotIn(vs ...int64) predicate.Metrics

IsolateMsNotIn applies the NotIn predicate on the "isolate_ms" field.

func Namespace

func Namespace(v string) predicate.Metrics

Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.

func NamespaceContains

func NamespaceContains(v string) predicate.Metrics

NamespaceContains applies the Contains predicate on the "namespace" field.

func NamespaceContainsFold

func NamespaceContainsFold(v string) predicate.Metrics

NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.

func NamespaceEQ

func NamespaceEQ(v string) predicate.Metrics

NamespaceEQ applies the EQ predicate on the "namespace" field.

func NamespaceEqualFold

func NamespaceEqualFold(v string) predicate.Metrics

NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.

func NamespaceGT

func NamespaceGT(v string) predicate.Metrics

NamespaceGT applies the GT predicate on the "namespace" field.

func NamespaceGTE

func NamespaceGTE(v string) predicate.Metrics

NamespaceGTE applies the GTE predicate on the "namespace" field.

func NamespaceHasPrefix

func NamespaceHasPrefix(v string) predicate.Metrics

NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.

func NamespaceHasSuffix

func NamespaceHasSuffix(v string) predicate.Metrics

NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.

func NamespaceIn

func NamespaceIn(vs ...string) predicate.Metrics

NamespaceIn applies the In predicate on the "namespace" field.

func NamespaceLT

func NamespaceLT(v string) predicate.Metrics

NamespaceLT applies the LT predicate on the "namespace" field.

func NamespaceLTE

func NamespaceLTE(v string) predicate.Metrics

NamespaceLTE applies the LTE predicate on the "namespace" field.

func NamespaceNEQ

func NamespaceNEQ(v string) predicate.Metrics

NamespaceNEQ applies the NEQ predicate on the "namespace" field.

func NamespaceNotIn

func NamespaceNotIn(vs ...string) predicate.Metrics

NamespaceNotIn applies the NotIn predicate on the "namespace" field.

func Next

func Next(v int8) predicate.Metrics

Next applies equality check predicate on the "next" field. It's identical to NextEQ.

func NextEQ

func NextEQ(v int8) predicate.Metrics

NextEQ applies the EQ predicate on the "next" field.

func NextGT

func NextGT(v int8) predicate.Metrics

NextGT applies the GT predicate on the "next" field.

func NextGTE

func NextGTE(v int8) predicate.Metrics

NextGTE applies the GTE predicate on the "next" field.

func NextIn

func NextIn(vs ...int8) predicate.Metrics

NextIn applies the In predicate on the "next" field.

func NextLT

func NextLT(v int8) predicate.Metrics

NextLT applies the LT predicate on the "next" field.

func NextLTE

func NextLTE(v int8) predicate.Metrics

NextLTE applies the LTE predicate on the "next" field.

func NextNEQ

func NextNEQ(v int8) predicate.Metrics

NextNEQ applies the NEQ predicate on the "next" field.

func NextNotIn

func NextNotIn(vs ...int8) predicate.Metrics

NextNotIn applies the NotIn predicate on the "next" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Metrics) predicate.Metrics

Or groups predicates with the OR operator between them.

func State

func State(v string) predicate.Metrics

State applies equality check predicate on the "state" field. It's identical to StateEQ.

func StateContains

func StateContains(v string) predicate.Metrics

StateContains applies the Contains predicate on the "state" field.

func StateContainsFold

func StateContainsFold(v string) predicate.Metrics

StateContainsFold applies the ContainsFold predicate on the "state" field.

func StateEQ

func StateEQ(v string) predicate.Metrics

StateEQ applies the EQ predicate on the "state" field.

func StateEqualFold

func StateEqualFold(v string) predicate.Metrics

StateEqualFold applies the EqualFold predicate on the "state" field.

func StateGT

func StateGT(v string) predicate.Metrics

StateGT applies the GT predicate on the "state" field.

func StateGTE

func StateGTE(v string) predicate.Metrics

StateGTE applies the GTE predicate on the "state" field.

func StateHasPrefix

func StateHasPrefix(v string) predicate.Metrics

StateHasPrefix applies the HasPrefix predicate on the "state" field.

func StateHasSuffix

func StateHasSuffix(v string) predicate.Metrics

StateHasSuffix applies the HasSuffix predicate on the "state" field.

func StateIn

func StateIn(vs ...string) predicate.Metrics

StateIn applies the In predicate on the "state" field.

func StateLT

func StateLT(v string) predicate.Metrics

StateLT applies the LT predicate on the "state" field.

func StateLTE

func StateLTE(v string) predicate.Metrics

StateLTE applies the LTE predicate on the "state" field.

func StateNEQ

func StateNEQ(v string) predicate.Metrics

StateNEQ applies the NEQ predicate on the "state" field.

func StateNotIn

func StateNotIn(vs ...string) predicate.Metrics

StateNotIn applies the NotIn predicate on the "state" field.

func Timestamp

func Timestamp(v time.Time) predicate.Metrics

Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.

func TimestampEQ

func TimestampEQ(v time.Time) predicate.Metrics

TimestampEQ applies the EQ predicate on the "timestamp" field.

func TimestampGT

func TimestampGT(v time.Time) predicate.Metrics

TimestampGT applies the GT predicate on the "timestamp" field.

func TimestampGTE

func TimestampGTE(v time.Time) predicate.Metrics

TimestampGTE applies the GTE predicate on the "timestamp" field.

func TimestampIn

func TimestampIn(vs ...time.Time) predicate.Metrics

TimestampIn applies the In predicate on the "timestamp" field.

func TimestampLT

func TimestampLT(v time.Time) predicate.Metrics

TimestampLT applies the LT predicate on the "timestamp" field.

func TimestampLTE

func TimestampLTE(v time.Time) predicate.Metrics

TimestampLTE applies the LTE predicate on the "timestamp" field.

func TimestampNEQ

func TimestampNEQ(v time.Time) predicate.Metrics

TimestampNEQ applies the NEQ predicate on the "timestamp" field.

func TimestampNotIn

func TimestampNotIn(vs ...time.Time) predicate.Metrics

TimestampNotIn applies the NotIn predicate on the "timestamp" field.

func Transition

func Transition(v string) predicate.Metrics

Transition applies equality check predicate on the "transition" field. It's identical to TransitionEQ.

func TransitionContains

func TransitionContains(v string) predicate.Metrics

TransitionContains applies the Contains predicate on the "transition" field.

func TransitionContainsFold

func TransitionContainsFold(v string) predicate.Metrics

TransitionContainsFold applies the ContainsFold predicate on the "transition" field.

func TransitionEQ

func TransitionEQ(v string) predicate.Metrics

TransitionEQ applies the EQ predicate on the "transition" field.

func TransitionEqualFold

func TransitionEqualFold(v string) predicate.Metrics

TransitionEqualFold applies the EqualFold predicate on the "transition" field.

func TransitionGT

func TransitionGT(v string) predicate.Metrics

TransitionGT applies the GT predicate on the "transition" field.

func TransitionGTE

func TransitionGTE(v string) predicate.Metrics

TransitionGTE applies the GTE predicate on the "transition" field.

func TransitionHasPrefix

func TransitionHasPrefix(v string) predicate.Metrics

TransitionHasPrefix applies the HasPrefix predicate on the "transition" field.

func TransitionHasSuffix

func TransitionHasSuffix(v string) predicate.Metrics

TransitionHasSuffix applies the HasSuffix predicate on the "transition" field.

func TransitionIn

func TransitionIn(vs ...string) predicate.Metrics

TransitionIn applies the In predicate on the "transition" field.

func TransitionIsNil

func TransitionIsNil() predicate.Metrics

TransitionIsNil applies the IsNil predicate on the "transition" field.

func TransitionLT

func TransitionLT(v string) predicate.Metrics

TransitionLT applies the LT predicate on the "transition" field.

func TransitionLTE

func TransitionLTE(v string) predicate.Metrics

TransitionLTE applies the LTE predicate on the "transition" field.

func TransitionNEQ

func TransitionNEQ(v string) predicate.Metrics

TransitionNEQ applies the NEQ predicate on the "transition" field.

func TransitionNotIn

func TransitionNotIn(vs ...string) predicate.Metrics

TransitionNotIn applies the NotIn predicate on the "transition" field.

func TransitionNotNil

func TransitionNotNil() predicate.Metrics

TransitionNotNil applies the NotNil predicate on the "transition" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Workflow

func Workflow(v string) predicate.Metrics

Workflow applies equality check predicate on the "workflow" field. It's identical to WorkflowEQ.

func WorkflowContains

func WorkflowContains(v string) predicate.Metrics

WorkflowContains applies the Contains predicate on the "workflow" field.

func WorkflowContainsFold

func WorkflowContainsFold(v string) predicate.Metrics

WorkflowContainsFold applies the ContainsFold predicate on the "workflow" field.

func WorkflowEQ

func WorkflowEQ(v string) predicate.Metrics

WorkflowEQ applies the EQ predicate on the "workflow" field.

func WorkflowEqualFold

func WorkflowEqualFold(v string) predicate.Metrics

WorkflowEqualFold applies the EqualFold predicate on the "workflow" field.

func WorkflowGT

func WorkflowGT(v string) predicate.Metrics

WorkflowGT applies the GT predicate on the "workflow" field.

func WorkflowGTE

func WorkflowGTE(v string) predicate.Metrics

WorkflowGTE applies the GTE predicate on the "workflow" field.

func WorkflowHasPrefix

func WorkflowHasPrefix(v string) predicate.Metrics

WorkflowHasPrefix applies the HasPrefix predicate on the "workflow" field.

func WorkflowHasSuffix

func WorkflowHasSuffix(v string) predicate.Metrics

WorkflowHasSuffix applies the HasSuffix predicate on the "workflow" field.

func WorkflowIn

func WorkflowIn(vs ...string) predicate.Metrics

WorkflowIn applies the In predicate on the "workflow" field.

func WorkflowLT

func WorkflowLT(v string) predicate.Metrics

WorkflowLT applies the LT predicate on the "workflow" field.

func WorkflowLTE

func WorkflowLTE(v string) predicate.Metrics

WorkflowLTE applies the LTE predicate on the "workflow" field.

func WorkflowMs

func WorkflowMs(v int64) predicate.Metrics

WorkflowMs applies equality check predicate on the "workflow_ms" field. It's identical to WorkflowMsEQ.

func WorkflowMsEQ

func WorkflowMsEQ(v int64) predicate.Metrics

WorkflowMsEQ applies the EQ predicate on the "workflow_ms" field.

func WorkflowMsGT

func WorkflowMsGT(v int64) predicate.Metrics

WorkflowMsGT applies the GT predicate on the "workflow_ms" field.

func WorkflowMsGTE

func WorkflowMsGTE(v int64) predicate.Metrics

WorkflowMsGTE applies the GTE predicate on the "workflow_ms" field.

func WorkflowMsIn

func WorkflowMsIn(vs ...int64) predicate.Metrics

WorkflowMsIn applies the In predicate on the "workflow_ms" field.

func WorkflowMsLT

func WorkflowMsLT(v int64) predicate.Metrics

WorkflowMsLT applies the LT predicate on the "workflow_ms" field.

func WorkflowMsLTE

func WorkflowMsLTE(v int64) predicate.Metrics

WorkflowMsLTE applies the LTE predicate on the "workflow_ms" field.

func WorkflowMsNEQ

func WorkflowMsNEQ(v int64) predicate.Metrics

WorkflowMsNEQ applies the NEQ predicate on the "workflow_ms" field.

func WorkflowMsNotIn

func WorkflowMsNotIn(vs ...int64) predicate.Metrics

WorkflowMsNotIn applies the NotIn predicate on the "workflow_ms" field.

func WorkflowNEQ

func WorkflowNEQ(v string) predicate.Metrics

WorkflowNEQ applies the NEQ predicate on the "workflow" field.

func WorkflowNotIn

func WorkflowNotIn(vs ...string) predicate.Metrics

WorkflowNotIn applies the NotIn predicate on the "workflow" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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