API Stability |
Long-Term
|
The updateSavedQuery() GraphQL mutation is used to update a saved query in LogScale.
For more information on saved queries, see the User Functions (Saved Searches) reference page where saved queries are discussed. Also, look at the Searching Data documentation page as it relates to recent queries and saving queries.
Syntax
Below is the syntax for the updateSavedQuery() mutation field:
updateSavedQuery(
input: UpdateSavedQueryInput!
): UpdateSavedQueryPayload!
Below is an example of how this mutation field might be used:
mutation {
updateSavedQuery( input:
{ id: "abc123",
viewName: "humio",
isLive: false
}
)
{ savedQuery { id } }
}
{
"data": {
"updateSavedQuery": {
"savedQuery": {
"id": "abc123"
}
}
}
}
Given Datatypes
UpdateSavedQueryInput has many parameters that may be given. Below is a list of them along with a description of each:
Table: UpdateSavedQueryInput
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
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 | |||||
customLinkInteractions | [CustomLinkInteractionInput ] | yes | Long-Term | The custom links for interactions. See CustomLinkInteractionInput . | |
dashboardLinkInteractions | [DashboardLinkInteractionInput ] | yes | Long-Term | The dashboard links for interactions. See DashboardLinkInteractionInput . | |
end | string | Long-Term | The ending point of the saved query. | ||
id | string | yes | Long-Term | The unique identifier of the saved query to update. | |
isLive | boolean | Long-Term | Whether the saved query is executed continuously on live, streaming data. | ||
name | string | Long-Term | The name of the saved query to update. | ||
options | string | Long-Term | Any options related to the saved query. | ||
queryString | string | Long-Term | The new query. | ||
searchLinkInteractions | [SearchLinkInteractionInput ] | yes | Long-Term | The search links for interactions. See SearchLinkInteractionInput . | |
start | string | Long-Term | The starting point of the saved query. | ||
updateParametersInteractions | [UpdateParametersInteractionInput ] | yes | Long-Term | The parameters to update for interactions. See UpdateParametersInteractionInput . | |
viewName | string | yes | Long-Term | The name of the view associated with the saved query. | |
widgetType | string | Long-Term | The type of widget for displaying the results of the saved query. |
Returned Datatypes
The returned datatype UpdateSavedQueryPayload has one parameter and several sub-parameters. Click on the link below to see a table containing the sub-parameters:
Table: UpdateSavedQueryPayload
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
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 | |||||
savedQuery | savedQuery | yes | Long-Term | The saved query to update. See savedQuery . |