API Stability Long-Term

The updateQueryPrefix() GraphQL mutation is used to update a query prefix for a group in a view in LogScale.

There is some mention of query prefixes on the Query Monitor documentation page that you may find helpful.

Syntax

Below is the syntax for the updateQueryPrefix() mutation field:

graphql
updateQueryPrefix(
      input: UpdateQueryPrefixInput!
   ): UpdateQueryPrefixMutation!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  updateQueryPrefix( input:
    { queryPrefix: "sales_",
      viewId: "abc123",
      groupId: "def456" }
  )
  { group { id } }
}
Example Responses
Show:
json
{
  "data": {
    "updateQueryPrefix": {
      "group": {
        "id": "def456"
      }
    }
  }
}

Given Datatypes

For UpdateQueryPrefixInput, there are a few parameters. Below is a list of them along with a description of each:

Table: UpdateQueryPrefixInput

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: Sep 23, 2024
groupIdstringyes Long-TermThe unique identifier of the group associted with the query.
queryPrefixstringyes Long-TermThe query prefix to update.
viewIdstringyes Long-TermThe unique identifier of the view associated with the query.

Returned Datatypes

The returned datatype UpdateQueryPrefixMutation has one parameter and several sub-parameters. Click on the link below to see a table containing the sub-parameters:

Table: UpdateQueryPrefixMutation

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: Oct 4, 2024
groupGroupyes Long-TermThe group for which to update the query prefix. See Group.