mutation updateConfigAutotuning(
  $autotuningInput: AutotuningIn!
  $apply: Boolean!
) {
  bosminer {
    config {
      updateAutotuning(apply: $apply, input: $autotuningInput) {
        ... on AutotuningOut {
          __typename
        }
        ... on AttributeError {
          __typename
          message
        }
        ... on AutotuningError {
          message
          mode
          powerTarget
          hashrateTarget
          performanceScaling {
            powerStep
            minPowerTarget
            hashrateStep
            minHashrateTarget
            shutdownDuration
          }
        }
      }
    }
  }
}
