Class HistoricIncidentApi

java.lang.Object
org.camunda.community.rest.client.api.HistoricIncidentApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-06-04T13:43:01.451833574Z[Etc/UTC]") public class HistoricIncidentApi extends Object
  • Constructor Details

    • HistoricIncidentApi

      public HistoricIncidentApi()
    • HistoricIncidentApi

      public HistoricIncidentApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHistoricIncidents

      public List<HistoricIncidentDto> getHistoricIncidents(String incidentId, String incidentType, String incidentMessage, String incidentMessageLike, String processDefinitionId, String processDefinitionKey, String processDefinitionKeyIn, String processInstanceId, String executionId, OffsetDateTime createTimeBefore, OffsetDateTime createTimeAfter, OffsetDateTime endTimeBefore, OffsetDateTime endTimeAfter, String activityId, String failedActivityId, String causeIncidentId, String rootCauseIncidentId, String _configuration, String historyConfiguration, Boolean open, Boolean resolved, Boolean deleted, String tenantIdIn, Boolean withoutTenantId, String jobDefinitionIdIn, String sortBy, String sortOrder, Integer firstResult, Integer maxResults) throws ApiException
      Get Incidents Queries for historic incidents that fulfill given parameters. The size of the result set can be retrieved by using the [Get Incident Count](https://docs.camunda.org/manual/7.21/reference/rest/history/incident/get-incident-query-count/) method.
      Parameters:
      incidentId - Restricts to incidents that have the given id. (optional)
      incidentType - Restricts to incidents that belong to the given incident type. See the [User Guide](/manual/develop/user-guide/process-engine/incidents/#incident-types) for a list of incident types. (optional)
      incidentMessage - Restricts to incidents that have the given incident message. (optional)
      incidentMessageLike - Restricts to incidents that incidents message is a substring of the given value. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%). (optional)
      processDefinitionId - Restricts to incidents that belong to a process definition with the given id. (optional)
      processDefinitionKey - Restricts to incidents that have the given processDefinitionKey. (optional)
      processDefinitionKeyIn - Restricts to incidents that have one of the given process definition keys. (optional)
      processInstanceId - Restricts to incidents that belong to a process instance with the given id. (optional)
      executionId - Restricts to incidents that belong to an execution with the given id. (optional)
      createTimeBefore - Restricts to incidents that have a createTime date before the given date. By [default](https://docs.camunda.org/manual/7.21/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. (optional)
      createTimeAfter - Restricts to incidents that have a createTime date after the given date. By [default](https://docs.camunda.org/manual/7.21/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. (optional)
      endTimeBefore - Restricts to incidents that have an endTimeBefore date before the given date. By [default](https://docs.camunda.org/manual/7.21/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. (optional)
      endTimeAfter - Restricts to incidents that have an endTimeAfter date after the given date. By [default](https://docs.camunda.org/manual/7.21/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. (optional)
      activityId - Restricts to incidents that belong to an activity with the given id. (optional)
      failedActivityId - Restricts to incidents that were created due to the failure of an activity with the given id. (optional)
      causeIncidentId - Restricts to incidents that have the given incident id as cause incident. (optional)
      rootCauseIncidentId - Restricts to incidents that have the given incident id as root cause incident. (optional)
      _configuration - Restricts to incidents that have the given parameter set as configuration. (optional)
      historyConfiguration - Restricts to incidents that have the given parameter set as history configuration. (optional)
      open - Restricts to incidents that are open. (optional)
      resolved - Restricts to incidents that are resolved. (optional)
      deleted - Restricts to incidents that are deleted. (optional)
      tenantIdIn - Restricts to incidents that have one of the given comma-separated tenant ids. (optional)
      withoutTenantId - Only include historic incidents that belong to no tenant. Value may only be `true`, as `false` is the default behavior. (optional)
      jobDefinitionIdIn - Restricts to incidents that have one of the given comma-separated job definition ids. (optional)
      sortBy - Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. (optional)
      sortOrder - Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. (optional)
      firstResult - Pagination of results. Specifies the index of the first result to return. (optional)
      maxResults - Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. (optional)
      Returns:
      List<HistoricIncidentDto>
      Throws:
      ApiException - if fails to make API call
    • getHistoricIncidents

      public List<HistoricIncidentDto> getHistoricIncidents(String incidentId, String incidentType, String incidentMessage, String incidentMessageLike, String processDefinitionId, String processDefinitionKey, String processDefinitionKeyIn, String processInstanceId, String executionId, OffsetDateTime createTimeBefore, OffsetDateTime createTimeAfter, OffsetDateTime endTimeBefore, OffsetDateTime endTimeAfter, String activityId, String failedActivityId, String causeIncidentId, String rootCauseIncidentId, String _configuration, String historyConfiguration, Boolean open, Boolean resolved, Boolean deleted, String tenantIdIn, Boolean withoutTenantId, String jobDefinitionIdIn, String sortBy, String sortOrder, Integer firstResult, Integer maxResults, Map<String,String> additionalHeaders) throws ApiException
      Get Incidents Queries for historic incidents that fulfill given parameters. The size of the result set can be retrieved by using the [Get Incident Count](https://docs.camunda.org/manual/7.21/reference/rest/history/incident/get-incident-query-count/) method.
      Parameters:
      incidentId - Restricts to incidents that have the given id. (optional)
      incidentType - Restricts to incidents that belong to the given incident type. See the [User Guide](/manual/develop/user-guide/process-engine/incidents/#incident-types) for a list of incident types. (optional)
      incidentMessage - Restricts to incidents that have the given incident message. (optional)
      incidentMessageLike - Restricts to incidents that incidents message is a substring of the given value. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%). (optional)
      processDefinitionId - Restricts to incidents that belong to a process definition with the given id. (optional)
      processDefinitionKey - Restricts to incidents that have the given processDefinitionKey. (optional)
      processDefinitionKeyIn - Restricts to incidents that have one of the given process definition keys. (optional)
      processInstanceId - Restricts to incidents that belong to a process instance with the given id. (optional)
      executionId - Restricts to incidents that belong to an execution with the given id. (optional)
      createTimeBefore - Restricts to incidents that have a createTime date before the given date. By [default](https://docs.camunda.org/manual/7.21/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. (optional)
      createTimeAfter - Restricts to incidents that have a createTime date after the given date. By [default](https://docs.camunda.org/manual/7.21/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. (optional)
      endTimeBefore - Restricts to incidents that have an endTimeBefore date before the given date. By [default](https://docs.camunda.org/manual/7.21/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. (optional)
      endTimeAfter - Restricts to incidents that have an endTimeAfter date after the given date. By [default](https://docs.camunda.org/manual/7.21/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. (optional)
      activityId - Restricts to incidents that belong to an activity with the given id. (optional)
      failedActivityId - Restricts to incidents that were created due to the failure of an activity with the given id. (optional)
      causeIncidentId - Restricts to incidents that have the given incident id as cause incident. (optional)
      rootCauseIncidentId - Restricts to incidents that have the given incident id as root cause incident. (optional)
      _configuration - Restricts to incidents that have the given parameter set as configuration. (optional)
      historyConfiguration - Restricts to incidents that have the given parameter set as history configuration. (optional)
      open - Restricts to incidents that are open. (optional)
      resolved - Restricts to incidents that are resolved. (optional)
      deleted - Restricts to incidents that are deleted. (optional)
      tenantIdIn - Restricts to incidents that have one of the given comma-separated tenant ids. (optional)
      withoutTenantId - Only include historic incidents that belong to no tenant. Value may only be `true`, as `false` is the default behavior. (optional)
      jobDefinitionIdIn - Restricts to incidents that have one of the given comma-separated job definition ids. (optional)
      sortBy - Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. (optional)
      sortOrder - Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. (optional)
      firstResult - Pagination of results. Specifies the index of the first result to return. (optional)
      maxResults - Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. (optional)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<HistoricIncidentDto>
      Throws:
      ApiException - if fails to make API call
    • getHistoricIncidentsCount

      public CountResultDto getHistoricIncidentsCount(String incidentId, String incidentType, String incidentMessage, String incidentMessageLike, String processDefinitionId, String processDefinitionKey, String processDefinitionKeyIn, String processInstanceId, String executionId, OffsetDateTime createTimeBefore, OffsetDateTime createTimeAfter, OffsetDateTime endTimeBefore, OffsetDateTime endTimeAfter, String activityId, String failedActivityId, String causeIncidentId, String rootCauseIncidentId, String _configuration, String historyConfiguration, Boolean open, Boolean resolved, Boolean deleted, String tenantIdIn, Boolean withoutTenantId, String jobDefinitionIdIn) throws ApiException
      Get Incident Count Queries for the number of historic incidents that fulfill the given parameters. Takes the same parameters as the [Get Incidents](https://docs.camunda.org/manual/7.21/reference/rest/history/incident/get-incident-query/) method.
      Parameters:
      incidentId - Restricts to incidents that have the given id. (optional)
      incidentType - Restricts to incidents that belong to the given incident type. See the [User Guide](/manual/develop/user-guide/process-engine/incidents/#incident-types) for a list of incident types. (optional)
      incidentMessage - Restricts to incidents that have the given incident message. (optional)
      incidentMessageLike - Restricts to incidents that incidents message is a substring of the given value. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%). (optional)
      processDefinitionId - Restricts to incidents that belong to a process definition with the given id. (optional)
      processDefinitionKey - Restricts to incidents that have the given processDefinitionKey. (optional)
      processDefinitionKeyIn - Restricts to incidents that have one of the given process definition keys. (optional)
      processInstanceId - Restricts to incidents that belong to a process instance with the given id. (optional)
      executionId - Restricts to incidents that belong to an execution with the given id. (optional)
      createTimeBefore - Restricts to incidents that have a createTime date before the given date. By [default](https://docs.camunda.org/manual/7.21/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. (optional)
      createTimeAfter - Restricts to incidents that have a createTime date after the given date. By [default](https://docs.camunda.org/manual/7.21/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. (optional)
      endTimeBefore - Restricts to incidents that have an endTimeBefore date before the given date. By [default](https://docs.camunda.org/manual/7.21/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. (optional)
      endTimeAfter - Restricts to incidents that have an endTimeAfter date after the given date. By [default](https://docs.camunda.org/manual/7.21/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. (optional)
      activityId - Restricts to incidents that belong to an activity with the given id. (optional)
      failedActivityId - Restricts to incidents that were created due to the failure of an activity with the given id. (optional)
      causeIncidentId - Restricts to incidents that have the given incident id as cause incident. (optional)
      rootCauseIncidentId - Restricts to incidents that have the given incident id as root cause incident. (optional)
      _configuration - Restricts to incidents that have the given parameter set as configuration. (optional)
      historyConfiguration - Restricts to incidents that have the given parameter set as history configuration. (optional)
      open - Restricts to incidents that are open. (optional)
      resolved - Restricts to incidents that are resolved. (optional)
      deleted - Restricts to incidents that are deleted. (optional)
      tenantIdIn - Restricts to incidents that have one of the given comma-separated tenant ids. (optional)
      withoutTenantId - Only include historic incidents that belong to no tenant. Value may only be `true`, as `false` is the default behavior. (optional)
      jobDefinitionIdIn - Restricts to incidents that have one of the given comma-separated job definition ids. (optional)
      Returns:
      CountResultDto
      Throws:
      ApiException - if fails to make API call
    • getHistoricIncidentsCount

      public CountResultDto getHistoricIncidentsCount(String incidentId, String incidentType, String incidentMessage, String incidentMessageLike, String processDefinitionId, String processDefinitionKey, String processDefinitionKeyIn, String processInstanceId, String executionId, OffsetDateTime createTimeBefore, OffsetDateTime createTimeAfter, OffsetDateTime endTimeBefore, OffsetDateTime endTimeAfter, String activityId, String failedActivityId, String causeIncidentId, String rootCauseIncidentId, String _configuration, String historyConfiguration, Boolean open, Boolean resolved, Boolean deleted, String tenantIdIn, Boolean withoutTenantId, String jobDefinitionIdIn, Map<String,String> additionalHeaders) throws ApiException
      Get Incident Count Queries for the number of historic incidents that fulfill the given parameters. Takes the same parameters as the [Get Incidents](https://docs.camunda.org/manual/7.21/reference/rest/history/incident/get-incident-query/) method.
      Parameters:
      incidentId - Restricts to incidents that have the given id. (optional)
      incidentType - Restricts to incidents that belong to the given incident type. See the [User Guide](/manual/develop/user-guide/process-engine/incidents/#incident-types) for a list of incident types. (optional)
      incidentMessage - Restricts to incidents that have the given incident message. (optional)
      incidentMessageLike - Restricts to incidents that incidents message is a substring of the given value. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%). (optional)
      processDefinitionId - Restricts to incidents that belong to a process definition with the given id. (optional)
      processDefinitionKey - Restricts to incidents that have the given processDefinitionKey. (optional)
      processDefinitionKeyIn - Restricts to incidents that have one of the given process definition keys. (optional)
      processInstanceId - Restricts to incidents that belong to a process instance with the given id. (optional)
      executionId - Restricts to incidents that belong to an execution with the given id. (optional)
      createTimeBefore - Restricts to incidents that have a createTime date before the given date. By [default](https://docs.camunda.org/manual/7.21/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. (optional)
      createTimeAfter - Restricts to incidents that have a createTime date after the given date. By [default](https://docs.camunda.org/manual/7.21/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. (optional)
      endTimeBefore - Restricts to incidents that have an endTimeBefore date before the given date. By [default](https://docs.camunda.org/manual/7.21/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. (optional)
      endTimeAfter - Restricts to incidents that have an endTimeAfter date after the given date. By [default](https://docs.camunda.org/manual/7.21/reference/rest/overview/date-format/), the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. (optional)
      activityId - Restricts to incidents that belong to an activity with the given id. (optional)
      failedActivityId - Restricts to incidents that were created due to the failure of an activity with the given id. (optional)
      causeIncidentId - Restricts to incidents that have the given incident id as cause incident. (optional)
      rootCauseIncidentId - Restricts to incidents that have the given incident id as root cause incident. (optional)
      _configuration - Restricts to incidents that have the given parameter set as configuration. (optional)
      historyConfiguration - Restricts to incidents that have the given parameter set as history configuration. (optional)
      open - Restricts to incidents that are open. (optional)
      resolved - Restricts to incidents that are resolved. (optional)
      deleted - Restricts to incidents that are deleted. (optional)
      tenantIdIn - Restricts to incidents that have one of the given comma-separated tenant ids. (optional)
      withoutTenantId - Only include historic incidents that belong to no tenant. Value may only be `true`, as `false` is the default behavior. (optional)
      jobDefinitionIdIn - Restricts to incidents that have one of the given comma-separated job definition ids. (optional)
      additionalHeaders - additionalHeaders for this call
      Returns:
      CountResultDto
      Throws:
      ApiException - if fails to make API call