createSearchLinkInteraction()

API Stability Long-Term

The createSearchLinkInteraction() GraphQL mutation field is used to create a search link interaction. This is a preview and may change.

Syntax

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

graphql
createSearchLinkInteraction(
       input: CreateSearchLinkInteractionInput!
    ): InteractionId!

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

Show:
graphql
mutation {
  createSearchLinkInteraction(input:
       { path: "humio",
         searchLinkInteractionInput: { 
             name: "my-search-link", 
             repoOrViewName: "humio", 
             isLive: true, openInNewTab: true,
             useWidgetTimeWindow: true,
             queryString: "#vhost",
             arguments: [ {key: "some", value: "thing"} ] }
      } )
  { id }
}
Example Responses
Show:
json
{
  "data": {
    "createSearchLinkInteraction": {
      "id": "TOnSZZwjHm4sGiUrIP1FuUDD38k3wIl1"
    }
  }
}

Given Datatypes

For CreateSearchLinkInteractionInput, there are a few parameters. Below is a list of them:

Table: CreateSearchLinkInteractionInput

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 17, 2024
pathstringyes  The path for the link.
searchLinkInteractionInputstringyes  The search link. See SearchLinkInteractionInput.

Returned Datatypes

As indicated by the syntax above, this mutation will return data using the datatype, InteractionId. Below is the parameter of that datatype:

Table: InteractionId

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 25, 2024
idstringyes Long-TermThe unique identifier for the interaction.