Skip to content

Entities definitions

This section describes the current types of public Moonlogs entities available for operations via the token API.

List of entities

Schema

A schema is a container for aggregating records of a specific business scenario or functional block.

NameRequiredType
titleYesstring
descriptionYesstring
nameYesstring
fieldsYesArray of SchemaField
kindsArray of SchemaKind
tag_idinteger
tag_namestring
retention_daysinteger

title

  • Type: string
  • Required: yes

title is a the human-readable name of the schema in the web interface. Schema search will also search for schemas based on this characteristic.

description

  • Type: string
  • Required: yes

description is a human-readable description of schema details in the web interface. Schema search will also search for schemas based on this characteristic.

name

  • Type: string
  • Required: yes

name is a textual identifier for the schema. Must be specified in Latin, in lowercase, and with underscores as separators.

fields

fields is a set of fields by which log grouping inside a schema will occur.

kinds

kinds is a set of select options by which log grouping will occur.

tag_id

  • Type: integer
  • Required: —

tag_id is and ID of Tag, applied to schema. Tags are used to group multiple schemas belonging to the same business area into logical blocks. If a schema includes a tag_id, and a user possesses a non-empty list of assigned tag_ids, access will be granted to schemas that contain any of the corresponding tags.

tag_name

  • Type: string
  • Required: —

tag_name is a a human-readable name of the tag. Schema search will also search for schema based on this characteristic.

retention_days

  • Type: integer
  • Required: —

retention_days represents the duration logs will remain available after creation. Once this duration expires, the logs will be automatically deleted. To allow logs to persist indefinitely, either specify 0 or leave this field empty.

SchemaField

NameRequiredType
titleYesstring
nameYesstring

title

  • Type: string
  • Required: yes

title is a human-readable name of the field in the web interface for log filtering.

name

  • Type: string
  • Required: yes

name is a textual identifier of the field. Must be specified in Latin, in lowercase, and with underscores as separators.

SchemaKind

NameRequiredType
titleYesstring
nameYesstring

title

  • Type: string
  • Required: yes

title is a human-readable name of the kind in the web interface for log filtering.

name

  • Type: string
  • Required: yes

name is a textual identifier for the kind. Must be specified in Latin, in lowercase, and with underscores as separators.

Released under the Apache 2.0 License.