API Stability Short-Term

The setDynamicConfig() GraphQL mutation is used to set a dynamic configuration. It requires root level access.

For more information on configuring all aspects of LogScale, see the Configuration Settings reference section.

Syntax

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

graphql
setDynamicConfig(
      input: DynamicConfigInputObject!
   ): boolean!

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

Show:
graphql
mutation {
  setDynamicConfig(input: 
    { config: NAME_OF_CONFIG, 
      value: "VALUE_FOR_CONFIG" 
    }
  )
}
Example Responses
Show:
json
{
   "data" : {
      "setDynamicConfig" : true
   }
}

To unset a dynamic configuration, see the unsetDynamicConfig() mutation field.

Given Datatypes

DynamicConfigInputObject has a couple of parameters, and several sub-parameters. Below is a list of them along with descriptions of each:

Table: DynamicConfigInputObject

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 18, 2024
configDynamicConfigyes  What to configure dynamically. See DynamicConfig.
valuestringyes  The value for which configuration is given.