NamespaceSchema
NamespaceSchema declares the attribute schema of a datastore namespace.
- API version
- telemetry.plural.sh/v1alpha1
- Kind
- NamespaceSchema
- Scope
- Namespaced
- Short names
- nsschema
NamespaceSchema
apiVersionstringtelemetry.plural.sh/v1alpha1kindstringNamespaceSchemametadataObjectMetaStandard object metadata. See the Kubernetes API reference for its fields.
NamespaceSchemaSpec
Used by NamespaceSchema
NamespaceSchemaSpec defines the desired state of NamespaceSchema.
- only Vector namespaces have schemas
self.dataStoreRef.kind == 'Vector'
dataStoreRefDataStoreReferencenamespacestringNamespace is the datastore namespace the schema is for. Defaults to the resource's name.
MinLength: 1schemaobject (keys:string, values:AttributeSchema)Schema maps attribute names to their schemas. Servers merge it into the namespace whenever it changes and when the namespace is created: attributes it names are replaced whole, others are left alone, and an attribute's type can't change once set. Attributes removed from it stay in the namespace.
MinProperties: 1- attribute names are at most 128 bytes and can't be id, vector, or start with $
self.all(name, size(name) <= 128 && name != 'id' && name != 'vector' && !name.startsWith('$')) - at most one attribute can embed
self.filter(name, has(self[name].embed) && self[name].embed).size() <= 1
- attribute names are at most 128 bytes and can't be id, vector, or start with $
DataStoreReference
Used by NamespaceSchemaSpec
kindstringEnum: [Metrics Logs Traces Vector]namestringMinLength: 1
AttributeSchema
Used by NamespaceSchemaSpec
AttributeSchema is the schema of one namespace attribute, as in the datastore's schema API.
- full_text_search and embed need type string
self.type == 'string' || !(has(self.full_text_search) && self.full_text_search) && !(has(self.embed) && self.embed)
typestringType is fixed once the attribute exists.
Enum: [string int float bool []string []int]full_text_searchbooleanFullTextSearch indexes a string attribute for BM25 ranking.
embedbooleanEmbed embeds a string attribute into the vector of rows written without one. At most one attribute per namespace.