NamespaceSchema

NamespaceSchema declares the attribute schema of a datastore namespace.

API version
telemetry.plural.sh/v1alpha1
Kind
NamespaceSchema
Scope
Namespaced
Short names
nsschema

NamespaceSchema

  • apiVersionstring

    telemetry.plural.sh/v1alpha1

  • kindstring

    NamespaceSchema

  • metadataObjectMeta

    Standard 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 schemasself.dataStoreRef.kind == 'Vector'
  • dataStoreRefDataStoreReference
  • namespacestring

    Namespace is the datastore namespace the schema is for. Defaults to the resource's name.

    MinLength: 1
  • schemaobject (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 embedself.filter(name, has(self[name].embed) && self[name].embed).size() <= 1

DataStoreReference

Used by NamespaceSchemaSpec

  • kindstring
    Enum: [Metrics Logs Traces Vector]
  • namestring
    MinLength: 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 stringself.type == 'string' || !(has(self.full_text_search) && self.full_text_search) && !(has(self.embed) && self.embed)
  • typestring

    Type is fixed once the attribute exists.

    Enum: [string int float bool []string []int]
  • full_text_searchboolean

    FullTextSearch indexes a string attribute for BM25 ranking.

  • embedboolean

    Embed embeds a string attribute into the vector of rows written without one. At most one attribute per namespace.