code: func (r *Rule) GetThresholdOk() (json.Number, bool) {
  	if r == nil || r.Threshold == nil {
  		return "", false
  	}
  	return *r.Threshold, true
  }
docs: // GetThresholdOk returns a tuple with the Threshold field if it's non-nil, zero value otherwise
  // and a boolean to check if the value has been set.