Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupUsage ¶
type BackupUsage struct {
// The ID of the backup
ID string `json:"id,omitempty"`
// The completion time of the backup
CompletionTime string `json:"completion_time,omitempty"`
// The size of the backup in GiB
SizeInGib float64 `json:"size_in_gib,omitempty"`
// The type of backup
Type string `json:"type,omitempty"`
// The list of collections included in the backup
Collections []string `json:"collections,omitempty"`
}
BackupUsage represents metrics for a single backup
type CollectionUsage ¶
type CollectionUsage struct {
// The name of the collection
Name string `json:"name,omitempty"`
// The replication factor of the collection
ReplicationFactor int `json:"replication_factor,omitempty"`
// The number of unique shards in the collection
UniqueShardCount int `json:"unique_shard_count,omitempty"`
// List of shards and their metrics
Shards []*ShardUsage `json:"shards,omitempty"`
}
CollectionUsage represents metrics for a single collection
type Dimensionality ¶
type Dimensionality struct {
// The dimensionality of the vectors
Dimensions int `json:"dimensionality,omitempty"`
// The number of objects with this dimensionality
Count int `json:"count,omitempty"`
}
Dimensionality represents metrics for a specific dimensionality
type ObjectUsage ¶
type Report ¶
type Report struct {
// The version of usage policy, date based versioning
// e.g. 2025-06-01
Version string `json:"version,omitempty"`
// The name of the node
Node string `json:"node,omitempty"`
// List of collections and their metrics
Collections []*CollectionUsage `json:"collections,omitempty"`
// List of backups and their metrics
Backups []*BackupUsage `json:"backups,omitempty"`
// CollectingTime The time of the collection of the metric
CollectingTime string `json:"-"`
// The local node's view of the schema
Schema *models.Schema `json:"schema,omitempty"`
}
Report represents the usage metrics report from the metrics endpoint
type ShardUsage ¶
type ShardUsage struct {
// The name of the shard
Name string `json:"name,omitempty"`
// The status of the shard (ACTIVE, INACTIVE)
Status string `json:"status,omitempty"`
// The number of objects in the shard
ObjectsCount int64 `json:"objects_count,omitempty"`
// The storage size in bytes
ObjectsStorageBytes uint64 `json:"objects_storage_bytes,omitempty"`
// The actual memory storage bytes used by vectors
VectorStorageBytes uint64 `json:"vector_storage_bytes,omitempty"`
// List of named vectors and their metrics
NamedVectors []*VectorUsage `json:"named_vectors,omitempty"`
}
ShardUsage represents metrics for a single shard
type VectorUsage ¶
type VectorUsage struct {
// The name of the vector
Name string `json:"name,omitempty"`
// The type of vector index (for dynamic indexes, this shows the underlying type: flat/hnsw)
VectorIndexType string `json:"vector_index_type,omitempty"`
// Indicates if this index originated from a dynamic index configuration
IsDynamic bool `json:"is_dynamic,omitempty"`
// The compression type used
Compression string `json:"compression,omitempty"`
// The compression ratio achieved
VectorCompressionRatio float64 `json:"vector_compression_ratio,omitempty"`
// The bits parameter for RQ compression (only set when Compression="rq")
Bits int16 `json:"bits,omitempty"`
// List of dimensionalities and their metrics
Dimensionalities []*Dimensionality `json:"dimensionalities,omitempty"`
}
VectorUsage represents metrics for a single vector index
Click to show internal directories.
Click to hide internal directories.