metrics

package
v0.0.0-...-d3aaeb6 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 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"
	// EdgeBazelInvocation holds the string denoting the bazel_invocation edge name in mutations.
	EdgeBazelInvocation = "bazel_invocation"
	// EdgeActionSummary holds the string denoting the action_summary edge name in mutations.
	EdgeActionSummary = "action_summary"
	// EdgeMemoryMetrics holds the string denoting the memory_metrics edge name in mutations.
	EdgeMemoryMetrics = "memory_metrics"
	// EdgeTargetMetrics holds the string denoting the target_metrics edge name in mutations.
	EdgeTargetMetrics = "target_metrics"
	// EdgePackageMetrics holds the string denoting the package_metrics edge name in mutations.
	EdgePackageMetrics = "package_metrics"
	// EdgeTimingMetrics holds the string denoting the timing_metrics edge name in mutations.
	EdgeTimingMetrics = "timing_metrics"
	// EdgeCumulativeMetrics holds the string denoting the cumulative_metrics edge name in mutations.
	EdgeCumulativeMetrics = "cumulative_metrics"
	// EdgeArtifactMetrics holds the string denoting the artifact_metrics edge name in mutations.
	EdgeArtifactMetrics = "artifact_metrics"
	// EdgeNetworkMetrics holds the string denoting the network_metrics edge name in mutations.
	EdgeNetworkMetrics = "network_metrics"
	// EdgeDynamicExecutionMetrics holds the string denoting the dynamic_execution_metrics edge name in mutations.
	EdgeDynamicExecutionMetrics = "dynamic_execution_metrics"
	// EdgeBuildGraphMetrics holds the string denoting the build_graph_metrics edge name in mutations.
	EdgeBuildGraphMetrics = "build_graph_metrics"
	// Table holds the table name of the metrics in the database.
	Table = "metrics"
	// BazelInvocationTable is the table that holds the bazel_invocation relation/edge.
	BazelInvocationTable = "metrics"
	// BazelInvocationInverseTable is the table name for the BazelInvocation entity.
	// It exists in this package in order to avoid circular dependency with the "bazelinvocation" package.
	BazelInvocationInverseTable = "bazel_invocations"
	// BazelInvocationColumn is the table column denoting the bazel_invocation relation/edge.
	BazelInvocationColumn = "bazel_invocation_metrics"
	// ActionSummaryTable is the table that holds the action_summary relation/edge.
	ActionSummaryTable = "action_summaries"
	// ActionSummaryInverseTable is the table name for the ActionSummary entity.
	// It exists in this package in order to avoid circular dependency with the "actionsummary" package.
	ActionSummaryInverseTable = "action_summaries"
	// ActionSummaryColumn is the table column denoting the action_summary relation/edge.
	ActionSummaryColumn = "metrics_action_summary"
	// MemoryMetricsTable is the table that holds the memory_metrics relation/edge.
	MemoryMetricsTable = "memory_metrics"
	// MemoryMetricsInverseTable is the table name for the MemoryMetrics entity.
	// It exists in this package in order to avoid circular dependency with the "memorymetrics" package.
	MemoryMetricsInverseTable = "memory_metrics"
	// MemoryMetricsColumn is the table column denoting the memory_metrics relation/edge.
	MemoryMetricsColumn = "metrics_memory_metrics"
	// TargetMetricsTable is the table that holds the target_metrics relation/edge.
	TargetMetricsTable = "target_metrics"
	// TargetMetricsInverseTable is the table name for the TargetMetrics entity.
	// It exists in this package in order to avoid circular dependency with the "targetmetrics" package.
	TargetMetricsInverseTable = "target_metrics"
	// TargetMetricsColumn is the table column denoting the target_metrics relation/edge.
	TargetMetricsColumn = "metrics_target_metrics"
	// PackageMetricsTable is the table that holds the package_metrics relation/edge.
	PackageMetricsTable = "package_metrics"
	// PackageMetricsInverseTable is the table name for the PackageMetrics entity.
	// It exists in this package in order to avoid circular dependency with the "packagemetrics" package.
	PackageMetricsInverseTable = "package_metrics"
	// PackageMetricsColumn is the table column denoting the package_metrics relation/edge.
	PackageMetricsColumn = "metrics_package_metrics"
	// TimingMetricsTable is the table that holds the timing_metrics relation/edge.
	TimingMetricsTable = "timing_metrics"
	// TimingMetricsInverseTable is the table name for the TimingMetrics entity.
	// It exists in this package in order to avoid circular dependency with the "timingmetrics" package.
	TimingMetricsInverseTable = "timing_metrics"
	// TimingMetricsColumn is the table column denoting the timing_metrics relation/edge.
	TimingMetricsColumn = "metrics_timing_metrics"
	// CumulativeMetricsTable is the table that holds the cumulative_metrics relation/edge.
	CumulativeMetricsTable = "cumulative_metrics"
	// CumulativeMetricsInverseTable is the table name for the CumulativeMetrics entity.
	// It exists in this package in order to avoid circular dependency with the "cumulativemetrics" package.
	CumulativeMetricsInverseTable = "cumulative_metrics"
	// CumulativeMetricsColumn is the table column denoting the cumulative_metrics relation/edge.
	CumulativeMetricsColumn = "metrics_cumulative_metrics"
	// ArtifactMetricsTable is the table that holds the artifact_metrics relation/edge.
	ArtifactMetricsTable = "artifact_metrics"
	// ArtifactMetricsInverseTable is the table name for the ArtifactMetrics entity.
	// It exists in this package in order to avoid circular dependency with the "artifactmetrics" package.
	ArtifactMetricsInverseTable = "artifact_metrics"
	// ArtifactMetricsColumn is the table column denoting the artifact_metrics relation/edge.
	ArtifactMetricsColumn = "metrics_artifact_metrics"
	// NetworkMetricsTable is the table that holds the network_metrics relation/edge.
	NetworkMetricsTable = "network_metrics"
	// NetworkMetricsInverseTable is the table name for the NetworkMetrics entity.
	// It exists in this package in order to avoid circular dependency with the "networkmetrics" package.
	NetworkMetricsInverseTable = "network_metrics"
	// NetworkMetricsColumn is the table column denoting the network_metrics relation/edge.
	NetworkMetricsColumn = "metrics_network_metrics"
	// DynamicExecutionMetricsTable is the table that holds the dynamic_execution_metrics relation/edge.
	DynamicExecutionMetricsTable = "dynamic_execution_metrics"
	// DynamicExecutionMetricsInverseTable is the table name for the DynamicExecutionMetrics entity.
	// It exists in this package in order to avoid circular dependency with the "dynamicexecutionmetrics" package.
	DynamicExecutionMetricsInverseTable = "dynamic_execution_metrics"
	// DynamicExecutionMetricsColumn is the table column denoting the dynamic_execution_metrics relation/edge.
	DynamicExecutionMetricsColumn = "metrics_dynamic_execution_metrics"
	// BuildGraphMetricsTable is the table that holds the build_graph_metrics relation/edge.
	BuildGraphMetricsTable = "build_graph_metrics"
	// BuildGraphMetricsInverseTable is the table name for the BuildGraphMetrics entity.
	// It exists in this package in order to avoid circular dependency with the "buildgraphmetrics" package.
	BuildGraphMetricsInverseTable = "build_graph_metrics"
	// BuildGraphMetricsColumn is the table column denoting the build_graph_metrics relation/edge.
	BuildGraphMetricsColumn = "metrics_build_graph_metrics"
)

Variables

View Source
var Columns = []string{
	FieldID,
}

Columns holds all SQL columns for metrics fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the "metrics" table and are not defined as standalone fields in the schema.

Functions

func And

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

And groups predicates with the AND operator between them.

func HasActionSummary

func HasActionSummary() predicate.Metrics

HasActionSummary applies the HasEdge predicate on the "action_summary" edge.

func HasActionSummaryWith

func HasActionSummaryWith(preds ...predicate.ActionSummary) predicate.Metrics

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

func HasArtifactMetrics

func HasArtifactMetrics() predicate.Metrics

HasArtifactMetrics applies the HasEdge predicate on the "artifact_metrics" edge.

func HasArtifactMetricsWith

func HasArtifactMetricsWith(preds ...predicate.ArtifactMetrics) predicate.Metrics

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

func HasBazelInvocation

func HasBazelInvocation() predicate.Metrics

HasBazelInvocation applies the HasEdge predicate on the "bazel_invocation" edge.

func HasBazelInvocationWith

func HasBazelInvocationWith(preds ...predicate.BazelInvocation) predicate.Metrics

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

func HasBuildGraphMetrics

func HasBuildGraphMetrics() predicate.Metrics

HasBuildGraphMetrics applies the HasEdge predicate on the "build_graph_metrics" edge.

func HasBuildGraphMetricsWith

func HasBuildGraphMetricsWith(preds ...predicate.BuildGraphMetrics) predicate.Metrics

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

func HasCumulativeMetrics

func HasCumulativeMetrics() predicate.Metrics

HasCumulativeMetrics applies the HasEdge predicate on the "cumulative_metrics" edge.

func HasCumulativeMetricsWith

func HasCumulativeMetricsWith(preds ...predicate.CumulativeMetrics) predicate.Metrics

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

func HasDynamicExecutionMetrics

func HasDynamicExecutionMetrics() predicate.Metrics

HasDynamicExecutionMetrics applies the HasEdge predicate on the "dynamic_execution_metrics" edge.

func HasDynamicExecutionMetricsWith

func HasDynamicExecutionMetricsWith(preds ...predicate.DynamicExecutionMetrics) predicate.Metrics

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

func HasMemoryMetrics

func HasMemoryMetrics() predicate.Metrics

HasMemoryMetrics applies the HasEdge predicate on the "memory_metrics" edge.

func HasMemoryMetricsWith

func HasMemoryMetricsWith(preds ...predicate.MemoryMetrics) predicate.Metrics

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

func HasNetworkMetrics

func HasNetworkMetrics() predicate.Metrics

HasNetworkMetrics applies the HasEdge predicate on the "network_metrics" edge.

func HasNetworkMetricsWith

func HasNetworkMetricsWith(preds ...predicate.NetworkMetrics) predicate.Metrics

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

func HasPackageMetrics

func HasPackageMetrics() predicate.Metrics

HasPackageMetrics applies the HasEdge predicate on the "package_metrics" edge.

func HasPackageMetricsWith

func HasPackageMetricsWith(preds ...predicate.PackageMetrics) predicate.Metrics

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

func HasTargetMetrics

func HasTargetMetrics() predicate.Metrics

HasTargetMetrics applies the HasEdge predicate on the "target_metrics" edge.

func HasTargetMetricsWith

func HasTargetMetricsWith(preds ...predicate.TargetMetrics) predicate.Metrics

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

func HasTimingMetrics

func HasTimingMetrics() predicate.Metrics

HasTimingMetrics applies the HasEdge predicate on the "timing_metrics" edge.

func HasTimingMetricsWith

func HasTimingMetricsWith(preds ...predicate.TimingMetrics) predicate.Metrics

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

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 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 ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Metrics queries.

func ByActionSummaryField

func ByActionSummaryField(field string, opts ...sql.OrderTermOption) OrderOption

ByActionSummaryField orders the results by action_summary field.

func ByArtifactMetricsField

func ByArtifactMetricsField(field string, opts ...sql.OrderTermOption) OrderOption

ByArtifactMetricsField orders the results by artifact_metrics field.

func ByBazelInvocationField

func ByBazelInvocationField(field string, opts ...sql.OrderTermOption) OrderOption

ByBazelInvocationField orders the results by bazel_invocation field.

func ByBuildGraphMetricsField

func ByBuildGraphMetricsField(field string, opts ...sql.OrderTermOption) OrderOption

ByBuildGraphMetricsField orders the results by build_graph_metrics field.

func ByCumulativeMetricsField

func ByCumulativeMetricsField(field string, opts ...sql.OrderTermOption) OrderOption

ByCumulativeMetricsField orders the results by cumulative_metrics field.

func ByDynamicExecutionMetricsField

func ByDynamicExecutionMetricsField(field string, opts ...sql.OrderTermOption) OrderOption

ByDynamicExecutionMetricsField orders the results by dynamic_execution_metrics field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByMemoryMetricsField

func ByMemoryMetricsField(field string, opts ...sql.OrderTermOption) OrderOption

ByMemoryMetricsField orders the results by memory_metrics field.

func ByNetworkMetricsField

func ByNetworkMetricsField(field string, opts ...sql.OrderTermOption) OrderOption

ByNetworkMetricsField orders the results by network_metrics field.

func ByPackageMetricsField

func ByPackageMetricsField(field string, opts ...sql.OrderTermOption) OrderOption

ByPackageMetricsField orders the results by package_metrics field.

func ByTargetMetricsField

func ByTargetMetricsField(field string, opts ...sql.OrderTermOption) OrderOption

ByTargetMetricsField orders the results by target_metrics field.

func ByTimingMetricsField

func ByTimingMetricsField(field string, opts ...sql.OrderTermOption) OrderOption

ByTimingMetricsField orders the results by timing_metrics field.

Jump to

Keyboard shortcuts

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