usageentitystat

package
v0.0.1-beta.5 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the usageentitystat type in the database.
	Label = "usage_entity_stat"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldBucketTime holds the string denoting the bucket_time field in the database.
	FieldBucketTime = "bucket_time"
	// FieldEntityType holds the string denoting the entity_type field in the database.
	FieldEntityType = "entity_type"
	// FieldEntityID holds the string denoting the entity_id field in the database.
	FieldEntityID = "entity_id"
	// FieldModel holds the string denoting the model field in the database.
	FieldModel = "model"
	// FieldRequestCount holds the string denoting the request_count field in the database.
	FieldRequestCount = "request_count"
	// FieldErrorCount holds the string denoting the error_count field in the database.
	FieldErrorCount = "error_count"
	// FieldCallCount holds the string denoting the call_count field in the database.
	FieldCallCount = "call_count"
	// FieldInputTokens holds the string denoting the input_tokens field in the database.
	FieldInputTokens = "input_tokens"
	// FieldOutputTokens holds the string denoting the output_tokens field in the database.
	FieldOutputTokens = "output_tokens"
	// FieldTotalTokens holds the string denoting the total_tokens field in the database.
	FieldTotalTokens = "total_tokens"
	// FieldCacheReadTokens holds the string denoting the cache_read_tokens field in the database.
	FieldCacheReadTokens = "cache_read_tokens"
	// FieldCacheCreationTokens holds the string denoting the cache_creation_tokens field in the database.
	FieldCacheCreationTokens = "cache_creation_tokens"
	// FieldCost holds the string denoting the cost field in the database.
	FieldCost = "cost"
	// FieldRawCost holds the string denoting the raw_cost field in the database.
	FieldRawCost = "raw_cost"
	// FieldTtftTotalMs holds the string denoting the ttft_total_ms field in the database.
	FieldTtftTotalMs = "ttft_total_ms"
	// FieldTtftCount holds the string denoting the ttft_count field in the database.
	FieldTtftCount = "ttft_count"
	// FieldTtftMaxMs holds the string denoting the ttft_max_ms field in the database.
	FieldTtftMaxMs = "ttft_max_ms"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// Table holds the table name of the usageentitystat in the database.
	Table = "usage_entity_stats"
)

Variables

View Source
var (
	// DefaultModel holds the default value on creation for the "model" field.
	DefaultModel string
	// DefaultRequestCount holds the default value on creation for the "request_count" field.
	DefaultRequestCount int64
	// DefaultErrorCount holds the default value on creation for the "error_count" field.
	DefaultErrorCount int64
	// DefaultCallCount holds the default value on creation for the "call_count" field.
	DefaultCallCount int64
	// DefaultInputTokens holds the default value on creation for the "input_tokens" field.
	DefaultInputTokens int64
	// DefaultOutputTokens holds the default value on creation for the "output_tokens" field.
	DefaultOutputTokens int64
	// DefaultTotalTokens holds the default value on creation for the "total_tokens" field.
	DefaultTotalTokens int64
	// DefaultCacheReadTokens holds the default value on creation for the "cache_read_tokens" field.
	DefaultCacheReadTokens int64
	// DefaultCacheCreationTokens holds the default value on creation for the "cache_creation_tokens" field.
	DefaultCacheCreationTokens int64
	// DefaultCost holds the default value on creation for the "cost" field.
	DefaultCost int64
	// DefaultRawCost holds the default value on creation for the "raw_cost" field.
	DefaultRawCost int64
	// DefaultTtftTotalMs holds the default value on creation for the "ttft_total_ms" field.
	DefaultTtftTotalMs int64
	// DefaultTtftCount holds the default value on creation for the "ttft_count" field.
	DefaultTtftCount int64
	// DefaultTtftMaxMs holds the default value on creation for the "ttft_max_ms" field.
	DefaultTtftMaxMs int64
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
)

Columns holds all SQL columns for usageentitystat fields.

Functions

func And

And groups predicates with the AND operator between them.

func BucketTime

func BucketTime(v time.Time) predicate.UsageEntityStat

BucketTime applies equality check predicate on the "bucket_time" field. It's identical to BucketTimeEQ.

func BucketTimeEQ

func BucketTimeEQ(v time.Time) predicate.UsageEntityStat

BucketTimeEQ applies the EQ predicate on the "bucket_time" field.

func BucketTimeGT

func BucketTimeGT(v time.Time) predicate.UsageEntityStat

BucketTimeGT applies the GT predicate on the "bucket_time" field.

func BucketTimeGTE

func BucketTimeGTE(v time.Time) predicate.UsageEntityStat

BucketTimeGTE applies the GTE predicate on the "bucket_time" field.

func BucketTimeIn

func BucketTimeIn(vs ...time.Time) predicate.UsageEntityStat

BucketTimeIn applies the In predicate on the "bucket_time" field.

func BucketTimeLT

func BucketTimeLT(v time.Time) predicate.UsageEntityStat

BucketTimeLT applies the LT predicate on the "bucket_time" field.

func BucketTimeLTE

func BucketTimeLTE(v time.Time) predicate.UsageEntityStat

BucketTimeLTE applies the LTE predicate on the "bucket_time" field.

func BucketTimeNEQ

func BucketTimeNEQ(v time.Time) predicate.UsageEntityStat

BucketTimeNEQ applies the NEQ predicate on the "bucket_time" field.

func BucketTimeNotIn

func BucketTimeNotIn(vs ...time.Time) predicate.UsageEntityStat

BucketTimeNotIn applies the NotIn predicate on the "bucket_time" field.

func CacheCreationTokens

func CacheCreationTokens(v int64) predicate.UsageEntityStat

CacheCreationTokens applies equality check predicate on the "cache_creation_tokens" field. It's identical to CacheCreationTokensEQ.

func CacheCreationTokensEQ

func CacheCreationTokensEQ(v int64) predicate.UsageEntityStat

CacheCreationTokensEQ applies the EQ predicate on the "cache_creation_tokens" field.

func CacheCreationTokensGT

func CacheCreationTokensGT(v int64) predicate.UsageEntityStat

CacheCreationTokensGT applies the GT predicate on the "cache_creation_tokens" field.

func CacheCreationTokensGTE

func CacheCreationTokensGTE(v int64) predicate.UsageEntityStat

CacheCreationTokensGTE applies the GTE predicate on the "cache_creation_tokens" field.

func CacheCreationTokensIn

func CacheCreationTokensIn(vs ...int64) predicate.UsageEntityStat

CacheCreationTokensIn applies the In predicate on the "cache_creation_tokens" field.

func CacheCreationTokensLT

func CacheCreationTokensLT(v int64) predicate.UsageEntityStat

CacheCreationTokensLT applies the LT predicate on the "cache_creation_tokens" field.

func CacheCreationTokensLTE

func CacheCreationTokensLTE(v int64) predicate.UsageEntityStat

CacheCreationTokensLTE applies the LTE predicate on the "cache_creation_tokens" field.

func CacheCreationTokensNEQ

func CacheCreationTokensNEQ(v int64) predicate.UsageEntityStat

CacheCreationTokensNEQ applies the NEQ predicate on the "cache_creation_tokens" field.

func CacheCreationTokensNotIn

func CacheCreationTokensNotIn(vs ...int64) predicate.UsageEntityStat

CacheCreationTokensNotIn applies the NotIn predicate on the "cache_creation_tokens" field.

func CacheReadTokens

func CacheReadTokens(v int64) predicate.UsageEntityStat

CacheReadTokens applies equality check predicate on the "cache_read_tokens" field. It's identical to CacheReadTokensEQ.

func CacheReadTokensEQ

func CacheReadTokensEQ(v int64) predicate.UsageEntityStat

CacheReadTokensEQ applies the EQ predicate on the "cache_read_tokens" field.

func CacheReadTokensGT

func CacheReadTokensGT(v int64) predicate.UsageEntityStat

CacheReadTokensGT applies the GT predicate on the "cache_read_tokens" field.

func CacheReadTokensGTE

func CacheReadTokensGTE(v int64) predicate.UsageEntityStat

CacheReadTokensGTE applies the GTE predicate on the "cache_read_tokens" field.

func CacheReadTokensIn

func CacheReadTokensIn(vs ...int64) predicate.UsageEntityStat

CacheReadTokensIn applies the In predicate on the "cache_read_tokens" field.

func CacheReadTokensLT

func CacheReadTokensLT(v int64) predicate.UsageEntityStat

CacheReadTokensLT applies the LT predicate on the "cache_read_tokens" field.

func CacheReadTokensLTE

func CacheReadTokensLTE(v int64) predicate.UsageEntityStat

CacheReadTokensLTE applies the LTE predicate on the "cache_read_tokens" field.

func CacheReadTokensNEQ

func CacheReadTokensNEQ(v int64) predicate.UsageEntityStat

CacheReadTokensNEQ applies the NEQ predicate on the "cache_read_tokens" field.

func CacheReadTokensNotIn

func CacheReadTokensNotIn(vs ...int64) predicate.UsageEntityStat

CacheReadTokensNotIn applies the NotIn predicate on the "cache_read_tokens" field.

func CallCount

func CallCount(v int64) predicate.UsageEntityStat

CallCount applies equality check predicate on the "call_count" field. It's identical to CallCountEQ.

func CallCountEQ

func CallCountEQ(v int64) predicate.UsageEntityStat

CallCountEQ applies the EQ predicate on the "call_count" field.

func CallCountGT

func CallCountGT(v int64) predicate.UsageEntityStat

CallCountGT applies the GT predicate on the "call_count" field.

func CallCountGTE

func CallCountGTE(v int64) predicate.UsageEntityStat

CallCountGTE applies the GTE predicate on the "call_count" field.

func CallCountIn

func CallCountIn(vs ...int64) predicate.UsageEntityStat

CallCountIn applies the In predicate on the "call_count" field.

func CallCountLT

func CallCountLT(v int64) predicate.UsageEntityStat

CallCountLT applies the LT predicate on the "call_count" field.

func CallCountLTE

func CallCountLTE(v int64) predicate.UsageEntityStat

CallCountLTE applies the LTE predicate on the "call_count" field.

func CallCountNEQ

func CallCountNEQ(v int64) predicate.UsageEntityStat

CallCountNEQ applies the NEQ predicate on the "call_count" field.

func CallCountNotIn

func CallCountNotIn(vs ...int64) predicate.UsageEntityStat

CallCountNotIn applies the NotIn predicate on the "call_count" field.

func Cost

Cost applies equality check predicate on the "cost" field. It's identical to CostEQ.

func CostEQ

CostEQ applies the EQ predicate on the "cost" field.

func CostGT

CostGT applies the GT predicate on the "cost" field.

func CostGTE

func CostGTE(v int64) predicate.UsageEntityStat

CostGTE applies the GTE predicate on the "cost" field.

func CostIn

func CostIn(vs ...int64) predicate.UsageEntityStat

CostIn applies the In predicate on the "cost" field.

func CostLT

CostLT applies the LT predicate on the "cost" field.

func CostLTE

func CostLTE(v int64) predicate.UsageEntityStat

CostLTE applies the LTE predicate on the "cost" field.

func CostNEQ

func CostNEQ(v int64) predicate.UsageEntityStat

CostNEQ applies the NEQ predicate on the "cost" field.

func CostNotIn

func CostNotIn(vs ...int64) predicate.UsageEntityStat

CostNotIn applies the NotIn predicate on the "cost" field.

func EntityID

func EntityID(v int64) predicate.UsageEntityStat

EntityID applies equality check predicate on the "entity_id" field. It's identical to EntityIDEQ.

func EntityIDEQ

func EntityIDEQ(v int64) predicate.UsageEntityStat

EntityIDEQ applies the EQ predicate on the "entity_id" field.

func EntityIDGT

func EntityIDGT(v int64) predicate.UsageEntityStat

EntityIDGT applies the GT predicate on the "entity_id" field.

func EntityIDGTE

func EntityIDGTE(v int64) predicate.UsageEntityStat

EntityIDGTE applies the GTE predicate on the "entity_id" field.

func EntityIDIn

func EntityIDIn(vs ...int64) predicate.UsageEntityStat

EntityIDIn applies the In predicate on the "entity_id" field.

func EntityIDLT

func EntityIDLT(v int64) predicate.UsageEntityStat

EntityIDLT applies the LT predicate on the "entity_id" field.

func EntityIDLTE

func EntityIDLTE(v int64) predicate.UsageEntityStat

EntityIDLTE applies the LTE predicate on the "entity_id" field.

func EntityIDNEQ

func EntityIDNEQ(v int64) predicate.UsageEntityStat

EntityIDNEQ applies the NEQ predicate on the "entity_id" field.

func EntityIDNotIn

func EntityIDNotIn(vs ...int64) predicate.UsageEntityStat

EntityIDNotIn applies the NotIn predicate on the "entity_id" field.

func EntityType

func EntityType(v string) predicate.UsageEntityStat

EntityType applies equality check predicate on the "entity_type" field. It's identical to EntityTypeEQ.

func EntityTypeContains

func EntityTypeContains(v string) predicate.UsageEntityStat

EntityTypeContains applies the Contains predicate on the "entity_type" field.

func EntityTypeContainsFold

func EntityTypeContainsFold(v string) predicate.UsageEntityStat

EntityTypeContainsFold applies the ContainsFold predicate on the "entity_type" field.

func EntityTypeEQ

func EntityTypeEQ(v string) predicate.UsageEntityStat

EntityTypeEQ applies the EQ predicate on the "entity_type" field.

func EntityTypeEqualFold

func EntityTypeEqualFold(v string) predicate.UsageEntityStat

EntityTypeEqualFold applies the EqualFold predicate on the "entity_type" field.

func EntityTypeGT

func EntityTypeGT(v string) predicate.UsageEntityStat

EntityTypeGT applies the GT predicate on the "entity_type" field.

func EntityTypeGTE

func EntityTypeGTE(v string) predicate.UsageEntityStat

EntityTypeGTE applies the GTE predicate on the "entity_type" field.

func EntityTypeHasPrefix

func EntityTypeHasPrefix(v string) predicate.UsageEntityStat

EntityTypeHasPrefix applies the HasPrefix predicate on the "entity_type" field.

func EntityTypeHasSuffix

func EntityTypeHasSuffix(v string) predicate.UsageEntityStat

EntityTypeHasSuffix applies the HasSuffix predicate on the "entity_type" field.

func EntityTypeIn

func EntityTypeIn(vs ...string) predicate.UsageEntityStat

EntityTypeIn applies the In predicate on the "entity_type" field.

func EntityTypeLT

func EntityTypeLT(v string) predicate.UsageEntityStat

EntityTypeLT applies the LT predicate on the "entity_type" field.

func EntityTypeLTE

func EntityTypeLTE(v string) predicate.UsageEntityStat

EntityTypeLTE applies the LTE predicate on the "entity_type" field.

func EntityTypeNEQ

func EntityTypeNEQ(v string) predicate.UsageEntityStat

EntityTypeNEQ applies the NEQ predicate on the "entity_type" field.

func EntityTypeNotIn

func EntityTypeNotIn(vs ...string) predicate.UsageEntityStat

EntityTypeNotIn applies the NotIn predicate on the "entity_type" field.

func ErrorCount

func ErrorCount(v int64) predicate.UsageEntityStat

ErrorCount applies equality check predicate on the "error_count" field. It's identical to ErrorCountEQ.

func ErrorCountEQ

func ErrorCountEQ(v int64) predicate.UsageEntityStat

ErrorCountEQ applies the EQ predicate on the "error_count" field.

func ErrorCountGT

func ErrorCountGT(v int64) predicate.UsageEntityStat

ErrorCountGT applies the GT predicate on the "error_count" field.

func ErrorCountGTE

func ErrorCountGTE(v int64) predicate.UsageEntityStat

ErrorCountGTE applies the GTE predicate on the "error_count" field.

func ErrorCountIn

func ErrorCountIn(vs ...int64) predicate.UsageEntityStat

ErrorCountIn applies the In predicate on the "error_count" field.

func ErrorCountLT

func ErrorCountLT(v int64) predicate.UsageEntityStat

ErrorCountLT applies the LT predicate on the "error_count" field.

func ErrorCountLTE

func ErrorCountLTE(v int64) predicate.UsageEntityStat

ErrorCountLTE applies the LTE predicate on the "error_count" field.

func ErrorCountNEQ

func ErrorCountNEQ(v int64) predicate.UsageEntityStat

ErrorCountNEQ applies the NEQ predicate on the "error_count" field.

func ErrorCountNotIn

func ErrorCountNotIn(vs ...int64) predicate.UsageEntityStat

ErrorCountNotIn applies the NotIn predicate on the "error_count" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.UsageEntityStat

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.UsageEntityStat

IDNotIn applies the NotIn predicate on the ID field.

func InputTokens

func InputTokens(v int64) predicate.UsageEntityStat

InputTokens applies equality check predicate on the "input_tokens" field. It's identical to InputTokensEQ.

func InputTokensEQ

func InputTokensEQ(v int64) predicate.UsageEntityStat

InputTokensEQ applies the EQ predicate on the "input_tokens" field.

func InputTokensGT

func InputTokensGT(v int64) predicate.UsageEntityStat

InputTokensGT applies the GT predicate on the "input_tokens" field.

func InputTokensGTE

func InputTokensGTE(v int64) predicate.UsageEntityStat

InputTokensGTE applies the GTE predicate on the "input_tokens" field.

func InputTokensIn

func InputTokensIn(vs ...int64) predicate.UsageEntityStat

InputTokensIn applies the In predicate on the "input_tokens" field.

func InputTokensLT

func InputTokensLT(v int64) predicate.UsageEntityStat

InputTokensLT applies the LT predicate on the "input_tokens" field.

func InputTokensLTE

func InputTokensLTE(v int64) predicate.UsageEntityStat

InputTokensLTE applies the LTE predicate on the "input_tokens" field.

func InputTokensNEQ

func InputTokensNEQ(v int64) predicate.UsageEntityStat

InputTokensNEQ applies the NEQ predicate on the "input_tokens" field.

func InputTokensNotIn

func InputTokensNotIn(vs ...int64) predicate.UsageEntityStat

InputTokensNotIn applies the NotIn predicate on the "input_tokens" field.

func Model

Model applies equality check predicate on the "model" field. It's identical to ModelEQ.

func ModelContains

func ModelContains(v string) predicate.UsageEntityStat

ModelContains applies the Contains predicate on the "model" field.

func ModelContainsFold

func ModelContainsFold(v string) predicate.UsageEntityStat

ModelContainsFold applies the ContainsFold predicate on the "model" field.

func ModelEQ

func ModelEQ(v string) predicate.UsageEntityStat

ModelEQ applies the EQ predicate on the "model" field.

func ModelEqualFold

func ModelEqualFold(v string) predicate.UsageEntityStat

ModelEqualFold applies the EqualFold predicate on the "model" field.

func ModelGT

func ModelGT(v string) predicate.UsageEntityStat

ModelGT applies the GT predicate on the "model" field.

func ModelGTE

func ModelGTE(v string) predicate.UsageEntityStat

ModelGTE applies the GTE predicate on the "model" field.

func ModelHasPrefix

func ModelHasPrefix(v string) predicate.UsageEntityStat

ModelHasPrefix applies the HasPrefix predicate on the "model" field.

func ModelHasSuffix

func ModelHasSuffix(v string) predicate.UsageEntityStat

ModelHasSuffix applies the HasSuffix predicate on the "model" field.

func ModelIn

func ModelIn(vs ...string) predicate.UsageEntityStat

ModelIn applies the In predicate on the "model" field.

func ModelLT

func ModelLT(v string) predicate.UsageEntityStat

ModelLT applies the LT predicate on the "model" field.

func ModelLTE

func ModelLTE(v string) predicate.UsageEntityStat

ModelLTE applies the LTE predicate on the "model" field.

func ModelNEQ

func ModelNEQ(v string) predicate.UsageEntityStat

ModelNEQ applies the NEQ predicate on the "model" field.

func ModelNotIn

func ModelNotIn(vs ...string) predicate.UsageEntityStat

ModelNotIn applies the NotIn predicate on the "model" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func OutputTokens

func OutputTokens(v int64) predicate.UsageEntityStat

OutputTokens applies equality check predicate on the "output_tokens" field. It's identical to OutputTokensEQ.

func OutputTokensEQ

func OutputTokensEQ(v int64) predicate.UsageEntityStat

OutputTokensEQ applies the EQ predicate on the "output_tokens" field.

func OutputTokensGT

func OutputTokensGT(v int64) predicate.UsageEntityStat

OutputTokensGT applies the GT predicate on the "output_tokens" field.

func OutputTokensGTE

func OutputTokensGTE(v int64) predicate.UsageEntityStat

OutputTokensGTE applies the GTE predicate on the "output_tokens" field.

func OutputTokensIn

func OutputTokensIn(vs ...int64) predicate.UsageEntityStat

OutputTokensIn applies the In predicate on the "output_tokens" field.

func OutputTokensLT

func OutputTokensLT(v int64) predicate.UsageEntityStat

OutputTokensLT applies the LT predicate on the "output_tokens" field.

func OutputTokensLTE

func OutputTokensLTE(v int64) predicate.UsageEntityStat

OutputTokensLTE applies the LTE predicate on the "output_tokens" field.

func OutputTokensNEQ

func OutputTokensNEQ(v int64) predicate.UsageEntityStat

OutputTokensNEQ applies the NEQ predicate on the "output_tokens" field.

func OutputTokensNotIn

func OutputTokensNotIn(vs ...int64) predicate.UsageEntityStat

OutputTokensNotIn applies the NotIn predicate on the "output_tokens" field.

func RawCost

func RawCost(v int64) predicate.UsageEntityStat

RawCost applies equality check predicate on the "raw_cost" field. It's identical to RawCostEQ.

func RawCostEQ

func RawCostEQ(v int64) predicate.UsageEntityStat

RawCostEQ applies the EQ predicate on the "raw_cost" field.

func RawCostGT

func RawCostGT(v int64) predicate.UsageEntityStat

RawCostGT applies the GT predicate on the "raw_cost" field.

func RawCostGTE

func RawCostGTE(v int64) predicate.UsageEntityStat

RawCostGTE applies the GTE predicate on the "raw_cost" field.

func RawCostIn

func RawCostIn(vs ...int64) predicate.UsageEntityStat

RawCostIn applies the In predicate on the "raw_cost" field.

func RawCostLT

func RawCostLT(v int64) predicate.UsageEntityStat

RawCostLT applies the LT predicate on the "raw_cost" field.

func RawCostLTE

func RawCostLTE(v int64) predicate.UsageEntityStat

RawCostLTE applies the LTE predicate on the "raw_cost" field.

func RawCostNEQ

func RawCostNEQ(v int64) predicate.UsageEntityStat

RawCostNEQ applies the NEQ predicate on the "raw_cost" field.

func RawCostNotIn

func RawCostNotIn(vs ...int64) predicate.UsageEntityStat

RawCostNotIn applies the NotIn predicate on the "raw_cost" field.

func RequestCount

func RequestCount(v int64) predicate.UsageEntityStat

RequestCount applies equality check predicate on the "request_count" field. It's identical to RequestCountEQ.

func RequestCountEQ

func RequestCountEQ(v int64) predicate.UsageEntityStat

RequestCountEQ applies the EQ predicate on the "request_count" field.

func RequestCountGT

func RequestCountGT(v int64) predicate.UsageEntityStat

RequestCountGT applies the GT predicate on the "request_count" field.

func RequestCountGTE

func RequestCountGTE(v int64) predicate.UsageEntityStat

RequestCountGTE applies the GTE predicate on the "request_count" field.

func RequestCountIn

func RequestCountIn(vs ...int64) predicate.UsageEntityStat

RequestCountIn applies the In predicate on the "request_count" field.

func RequestCountLT

func RequestCountLT(v int64) predicate.UsageEntityStat

RequestCountLT applies the LT predicate on the "request_count" field.

func RequestCountLTE

func RequestCountLTE(v int64) predicate.UsageEntityStat

RequestCountLTE applies the LTE predicate on the "request_count" field.

func RequestCountNEQ

func RequestCountNEQ(v int64) predicate.UsageEntityStat

RequestCountNEQ applies the NEQ predicate on the "request_count" field.

func RequestCountNotIn

func RequestCountNotIn(vs ...int64) predicate.UsageEntityStat

RequestCountNotIn applies the NotIn predicate on the "request_count" field.

func TotalTokens

func TotalTokens(v int64) predicate.UsageEntityStat

TotalTokens applies equality check predicate on the "total_tokens" field. It's identical to TotalTokensEQ.

func TotalTokensEQ

func TotalTokensEQ(v int64) predicate.UsageEntityStat

TotalTokensEQ applies the EQ predicate on the "total_tokens" field.

func TotalTokensGT

func TotalTokensGT(v int64) predicate.UsageEntityStat

TotalTokensGT applies the GT predicate on the "total_tokens" field.

func TotalTokensGTE

func TotalTokensGTE(v int64) predicate.UsageEntityStat

TotalTokensGTE applies the GTE predicate on the "total_tokens" field.

func TotalTokensIn

func TotalTokensIn(vs ...int64) predicate.UsageEntityStat

TotalTokensIn applies the In predicate on the "total_tokens" field.

func TotalTokensLT

func TotalTokensLT(v int64) predicate.UsageEntityStat

TotalTokensLT applies the LT predicate on the "total_tokens" field.

func TotalTokensLTE

func TotalTokensLTE(v int64) predicate.UsageEntityStat

TotalTokensLTE applies the LTE predicate on the "total_tokens" field.

func TotalTokensNEQ

func TotalTokensNEQ(v int64) predicate.UsageEntityStat

TotalTokensNEQ applies the NEQ predicate on the "total_tokens" field.

func TotalTokensNotIn

func TotalTokensNotIn(vs ...int64) predicate.UsageEntityStat

TotalTokensNotIn applies the NotIn predicate on the "total_tokens" field.

func TtftCount

func TtftCount(v int64) predicate.UsageEntityStat

TtftCount applies equality check predicate on the "ttft_count" field. It's identical to TtftCountEQ.

func TtftCountEQ

func TtftCountEQ(v int64) predicate.UsageEntityStat

TtftCountEQ applies the EQ predicate on the "ttft_count" field.

func TtftCountGT

func TtftCountGT(v int64) predicate.UsageEntityStat

TtftCountGT applies the GT predicate on the "ttft_count" field.

func TtftCountGTE

func TtftCountGTE(v int64) predicate.UsageEntityStat

TtftCountGTE applies the GTE predicate on the "ttft_count" field.

func TtftCountIn

func TtftCountIn(vs ...int64) predicate.UsageEntityStat

TtftCountIn applies the In predicate on the "ttft_count" field.

func TtftCountLT

func TtftCountLT(v int64) predicate.UsageEntityStat

TtftCountLT applies the LT predicate on the "ttft_count" field.

func TtftCountLTE

func TtftCountLTE(v int64) predicate.UsageEntityStat

TtftCountLTE applies the LTE predicate on the "ttft_count" field.

func TtftCountNEQ

func TtftCountNEQ(v int64) predicate.UsageEntityStat

TtftCountNEQ applies the NEQ predicate on the "ttft_count" field.

func TtftCountNotIn

func TtftCountNotIn(vs ...int64) predicate.UsageEntityStat

TtftCountNotIn applies the NotIn predicate on the "ttft_count" field.

func TtftMaxMs

func TtftMaxMs(v int64) predicate.UsageEntityStat

TtftMaxMs applies equality check predicate on the "ttft_max_ms" field. It's identical to TtftMaxMsEQ.

func TtftMaxMsEQ

func TtftMaxMsEQ(v int64) predicate.UsageEntityStat

TtftMaxMsEQ applies the EQ predicate on the "ttft_max_ms" field.

func TtftMaxMsGT

func TtftMaxMsGT(v int64) predicate.UsageEntityStat

TtftMaxMsGT applies the GT predicate on the "ttft_max_ms" field.

func TtftMaxMsGTE

func TtftMaxMsGTE(v int64) predicate.UsageEntityStat

TtftMaxMsGTE applies the GTE predicate on the "ttft_max_ms" field.

func TtftMaxMsIn

func TtftMaxMsIn(vs ...int64) predicate.UsageEntityStat

TtftMaxMsIn applies the In predicate on the "ttft_max_ms" field.

func TtftMaxMsLT

func TtftMaxMsLT(v int64) predicate.UsageEntityStat

TtftMaxMsLT applies the LT predicate on the "ttft_max_ms" field.

func TtftMaxMsLTE

func TtftMaxMsLTE(v int64) predicate.UsageEntityStat

TtftMaxMsLTE applies the LTE predicate on the "ttft_max_ms" field.

func TtftMaxMsNEQ

func TtftMaxMsNEQ(v int64) predicate.UsageEntityStat

TtftMaxMsNEQ applies the NEQ predicate on the "ttft_max_ms" field.

func TtftMaxMsNotIn

func TtftMaxMsNotIn(vs ...int64) predicate.UsageEntityStat

TtftMaxMsNotIn applies the NotIn predicate on the "ttft_max_ms" field.

func TtftTotalMs

func TtftTotalMs(v int64) predicate.UsageEntityStat

TtftTotalMs applies equality check predicate on the "ttft_total_ms" field. It's identical to TtftTotalMsEQ.

func TtftTotalMsEQ

func TtftTotalMsEQ(v int64) predicate.UsageEntityStat

TtftTotalMsEQ applies the EQ predicate on the "ttft_total_ms" field.

func TtftTotalMsGT

func TtftTotalMsGT(v int64) predicate.UsageEntityStat

TtftTotalMsGT applies the GT predicate on the "ttft_total_ms" field.

func TtftTotalMsGTE

func TtftTotalMsGTE(v int64) predicate.UsageEntityStat

TtftTotalMsGTE applies the GTE predicate on the "ttft_total_ms" field.

func TtftTotalMsIn

func TtftTotalMsIn(vs ...int64) predicate.UsageEntityStat

TtftTotalMsIn applies the In predicate on the "ttft_total_ms" field.

func TtftTotalMsLT

func TtftTotalMsLT(v int64) predicate.UsageEntityStat

TtftTotalMsLT applies the LT predicate on the "ttft_total_ms" field.

func TtftTotalMsLTE

func TtftTotalMsLTE(v int64) predicate.UsageEntityStat

TtftTotalMsLTE applies the LTE predicate on the "ttft_total_ms" field.

func TtftTotalMsNEQ

func TtftTotalMsNEQ(v int64) predicate.UsageEntityStat

TtftTotalMsNEQ applies the NEQ predicate on the "ttft_total_ms" field.

func TtftTotalMsNotIn

func TtftTotalMsNotIn(vs ...int64) predicate.UsageEntityStat

TtftTotalMsNotIn applies the NotIn predicate on the "ttft_total_ms" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.UsageEntityStat

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.UsageEntityStat

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.UsageEntityStat

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.UsageEntityStat

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.UsageEntityStat

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.UsageEntityStat

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.UsageEntityStat

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.UsageEntityStat

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.UsageEntityStat

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

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 UsageEntityStat queries.

func ByBucketTime

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

ByBucketTime orders the results by the bucket_time field.

func ByCacheCreationTokens

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

ByCacheCreationTokens orders the results by the cache_creation_tokens field.

func ByCacheReadTokens

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

ByCacheReadTokens orders the results by the cache_read_tokens field.

func ByCallCount

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

ByCallCount orders the results by the call_count field.

func ByCost

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

ByCost orders the results by the cost field.

func ByEntityID

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

ByEntityID orders the results by the entity_id field.

func ByEntityType

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

ByEntityType orders the results by the entity_type field.

func ByErrorCount

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

ByErrorCount orders the results by the error_count field.

func ByID

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

ByID orders the results by the id field.

func ByInputTokens

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

ByInputTokens orders the results by the input_tokens field.

func ByModel

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

ByModel orders the results by the model field.

func ByOutputTokens

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

ByOutputTokens orders the results by the output_tokens field.

func ByRawCost

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

ByRawCost orders the results by the raw_cost field.

func ByRequestCount

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

ByRequestCount orders the results by the request_count field.

func ByTotalTokens

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

ByTotalTokens orders the results by the total_tokens field.

func ByTtftCount

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

ByTtftCount orders the results by the ttft_count field.

func ByTtftMaxMs

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

ByTtftMaxMs orders the results by the ttft_max_ms field.

func ByTtftTotalMs

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

ByTtftTotalMs orders the results by the ttft_total_ms field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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