code: def update(self, alert_condition_infra_id, policy_id,
                 name, condition_type, alert_condition_configuration, enabled=True):
          
  
          data = {
              "data": alert_condition_configuration
          }
  
          data['data']['type'] = condition_type
          data['data']['policy_id'] = policy_id
          data['data']['name'] = name
          data['data']['enabled'] = enabled
  
          return self._put(
              url='{0}alerts/conditions/{1}'.format(self.URL, alert_condition_infra_id),
              headers=self.headers,
              data=data
          )
docs: This API endpoint allows you to update an alert condition for infrastucture
  
          :type alert_condition_infra_id: int
          :param alert_condition_infra_id: Alert Condition Infra ID
  
          :type policy_id: int
          :param policy_id: Alert policy id
  
          :type name: str
          :param name: The name of the alert condition
  
          :type condition_type: str
          :param condition_type: The type of the alert condition can be
              infra_process_running, infra_metric or infra_host_not_reporting
  
          :type alert_condition_configuration: hash
          :param alert_condition_configuration: hash containing config for the alert
  
          :type enabled: bool
          :param enabled: Whether to enable that alert condition
  
          :rtype: dict
          :return: The JSON response of the API
  
          ::
  
              {
                  "data": {
                      "id": "integer",
                      "policy_id": "integer",
                      "type": "string",
                      "name": "string",
                      "enabled": "boolean",
                      "where_clause": "string",
                      "comparison": "string",
                      "filter": "hash",
                      "critical_threshold": "hash",
                      "event_type": "string",
                      "process_where_clause": "string",
                      "created_at_epoch_millis": "time",
                      "updated_at_epoch_millis": "time"
                  }
              }