API Stability Long-Term

The fieldAliasSchemaOnView() GraphQL query is used to retrieve the active schema and its field aliases of a view.

Syntax

Below is the syntax for the fieldAliasSchemaOnView() query field:

graphql
fieldAliasSchemaOnView(
      repoOrViewName: string!
   ): FieldAliasSchema!

For the input of this query, give the name of the repository or view you want to query within quote marks. For the return values to request, enter them within curly-brackets. A list of your choices are in the Returned Datatype section. Here's an example of how you might use this query field:

Show:
graphql
query {
  fieldAliasSchemaOnView(repoOrViewName: "humio") {
    id, name, fields {
      description
    }
  }
}
Example Responses
Show:
json
{
  "data": {
    "fieldAliasSchemaOnView": {
      "id": "kJvnpfCzPILaNDcJydaKI0fpJleRc6ca",
      "name": "Tester",
      "fields": [
        {
          "description": "Host"
        },
        {
          "description": "IP Address"
        }
      ]
    }
  }
}

Returned Datatypes

The FieldAliasSchema, datatype has a few parameters, a couple with additional parameters of their own. They're listed here:

Table: FieldAliasSchema

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Mar 26, 2025
fields[SchemaField]yes Long-TermThe schema fields. See SchemaField.
idstringyes Long-TermThe unique identifier of the field alias schema.
instances[AliasMapping]yes Long-TermThe instances used. See AliasMapping.
namestringyes Long-TermThe name of the schema.
versionstringyes Long-TermThe version.
yamlTemplateYAMLyes Long-TermA YAML template.