Retrieve Errored Instances
/ic/api/integration/v1/monitoring/errors
Request
-
expand: string
- Includes additional details in the response about integrations, or about connections. Valid values: integration, connection.
-
groupBy: string
- Groups results by messages, integration name, or connection name. Valid values: messages, integration, connection.
-
integrationInstance(required): string
This is the name of the service instance. You can get this value from the About page where it is specified in the Service instance field.
-
limit: integer(int32)
Use with the offset parameter for paginating through the returned results. The limit is the maximum number of items to return at one time. For example, offset=3&limit=16 indicates to list error instances starting at the 4th item, and the list will contain 16 items.
-
offset: integer(int32)
Use with the limit parameter for paginating through the returned results. Default is 0. The offset is the starting point from which to return records. For example, offset=3&limit=16 indicates to list starting at the 4th item, and the list will contain 16 items.
-
q: string
Filter parameters.
- timewindow: 1h, 6h, 1d, 2d, 3d, RETENTIONPERIOD. Default value is 1h. Oracle recommends to use the time window and date range values as close as possible to the required time period.
- code: Integration identifier.
- orderBy: Sorts by creation date and last updated date. Valid values are lastupdateddate and creationdate. Default value is lastupdateddate.
- version: Integration version.
- startdate: Custom time range start date/time in UTC format for filtering instances. You can select any date within the 32 days range of Oracle Integration Instance data retention period. Oracle recommends to use the time window and date range values as close as possible to the required time period.
- enddate: Custom time range end date/time in UTC format for filtering instances. You can select any date within the 32 days range of Oracle Integration Instance data retention period. Oracle recommends to use the time window and date range values as close as possible to the required time period.
- id: Integration instance identifier.
- instanceId: Integration instance identifier
- primaryValue: Searches across primary variable values. To perform multi-word searches, encapsulate the search values in double quotation marks. To perform exact match searches, encapsulate the search values in square brackets followed by single quotation marks. For example, '[test-instance1]', and '[testinginstance2]'. If a variable value contains an underscore character, for example test_instance, then you must search using the complete word test_instance. Search does not show matching responses if you search using a part of the the variable value word that contains underscore character.
- secondaryValue: Searches across secondary and tertiary variable values. To perform multi-word searches, encapsulate the search values in double quotation marks. To perform exact match searches, encapsulate the search values in square brackets followed by single quotation marks. For example, '[test-instance1]', and '[testinginstance2]'. To search for an exact secondary tracking variable value, use the secondaryName in addition to the secondaryValue. If a variable value contains an underscore character, for example test_instance, then you must search using the complete word test_instance. Search does not show matching responses if you search using a part of the the variable value word that contains underscore character.
- tertiaryValue: Searches across secondary and tertiary variable values. To perform multi-word searches, encapsulate the search values in double quotation marks. To perform exact match searches, encapsulate the search values in square brackets followed by single quotation marks. For example, '[test-instance1]', and '[testinginstance2]'. To search for an exact tertiary tracking variable value, use the tertiaryName in addition to the tertiaryValue. If a variable value contains an underscore character, for example test_instance, then you must search using the complete word test_instance. Search does not show matching responses if you search using a part of the the variable value word that contains underscore character.
- primaryName: Primary variable name.
- secondaryName: Secondary variable name.
- tertiaryName: Tertiary variable name.
- businessIDValue: Searches across the primary, secondary and tertiary variables values. To perform multi-word searches, encapsulate the search values in double quotation marks followed by single quotation marks. For example, '"uyt-atz"'. To perform exact match searches, encapsulate the search values in square brackets followed by single quotation marks. For example, '[test-instance1]', and '[testinginstance2]'. If a variable value contains an underscore character, for example test_instance, then you must search using the complete word test_instance. Search does not show matching responses if you search using a part of the the variable value word that contains underscore character.
- errorMessage: Searches all the errored instances and matches with the given short error message words. To perform multi-word searches, encapsulate the search values in double quotation marks followed by single quotation marks. For example, '"uyt-atz"'. To perform exact match searches, encapsulate the search values in square brackets followed by single quotation marks. For example, '[test-instance1]', and '[testinginstance2]'.
- errorDetails: Searches all the errored instances and matches with the given error message words. To perform multi-word searches, encapsulate the search values in double quotation marks followed by single quotation marks. For example, '"uyt-atz"'. To perform exact match searches, encapsulate the search values in square brackets followed by single quotation marks. For example, '[test-instance1]', and '[testinginstance2]'.
- recoverable: Indicates whether to fetch recoverable or non-recoverable instances. Valid values are true/false.
- includePurged: Indicates whether to fetch purged instances. Valid values are yes, no, and onlyPurged.
- projectCode: Project identifier.
- connectionCode: Connection identifier.
- integration-style: Integration style identifier. Valid values are appdriven/scheduled.
Example:
{startdate:'2020-07-09 07:00:00', enddate:'2020-07-09 21:25:00', code:'ERROR', version:'01.00.0000', recoverable:'true', id:'118'}
-
return: string
Controls the response data. Valid value is minimal. For example, return=minimal. When this value is specified, minimal information of the instance data is added in the response thus making the response time quicker than the default API call. In this response, the attributes integration.name and integrationDeleted are set to their default and should not be relied upon. This URL parameter is recommended if performance is preferred instead of the availability of complete instance data.
There's no request body for this operation.
Back to TopResponse
- application/json; charset=utf-8
200 Response
object
-
data-fetch-time: string
(date-time)
Date Fetch Time
-
instanceReportingLevel: string
Instance Reporting Level
-
isPurged: boolean
Purged Instances
-
items: array
items
List of Errors
-
opcRequestId: string
opc Request Id
-
time-window: string
Time Window
-
total-records-count: integer
(int64)
Total Records Count
-
total-results: integer
(int64)
Total Results
object
-
creationDate: string
(date-time)
-
lastTrackedTime: string
(date-time)
-
primaryName: string
-
primaryValue: string
-
status: string
Allowed Values:
[ "IN_PROGRESS", "SCHEDULE_WAITING", "QUEUED", "SCHEDULE_PAUSED", "PAUSED", "FAILED", "COMPLETED", "ABORTED", "UNKNOWN", "RESUBMITTED", "BLOCKED" ]
object
-
connection:
ConnectionErrorRs
-
endPointName: string
-
endPointOperation: string
-
endPointType: string
-
errorActionName: string
-
errorActionType: string
-
errorCode: string
-
errorDetails: string
-
errorLocation: string
-
errorMessage: string
-
faultId: string
-
instanceId: string
-
instanceReportingLevel: string
-
integration:
IntegrationBaseRs
-
invokedBy: string
-
isPurged: boolean
-
milestone: string
-
opcRequestId: string
-
projectCode: string
-
projectName: string
-
retryCount: integer
(int32)
400 Response
401 Response
403 Response
500 Response
Examples
The following examples show how to retrieve monitoring details for error integration instances by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL. For more information about endpoint URL structure, see Send Requests.
Example: Get monitoring data for all error integration instances
curl -X GET -H 'Authorization: Bearer access_token' -H "Accept:application/json" https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/monitoring/errors?integrationInstance=service-instance
Example: Get monitoring data for all error integration instances and include additional information about integrations
curl -G -X GET -H 'Authorization: Bearer access_token' -H "Accept:application/json" -d "expand=integration" https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/monitoring/errors?integrationInstance=service-instance
Example: Get monitoring data for all error integration instances grouped by integration name
curl -G -X GET -H 'Authorization: Bearer access_token' -H "Accept:application/json" -d "groupBy=integration" https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/monitoring/errors?integrationInstance=service-instance
Example: Get monitoring data for error instances for integration SC2RNSYNC version 01.00.0000 for the past 3 days
curl -G -X GET -H 'Authorization: Bearer access_token' -H "Accept:application/json" --data-urlencode "q={timewindow: '3d', code: 'SC2RNSYNC', version: '01.00.0000'}" https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/monitoring/errors?integrationInstance=service-instance
Example: Paginate through returned results
Pagination is done with limit
and offset
. In this example, we list integrations starting at the fourth item. The list contains 16 items.
curl -G -X GET -H 'Authorization: Bearer access_token' -H "Accept:application/json" -d "offset=3&limit=16" https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/monitoring/errors?integrationInstance=service-instance
Example: Combine Parameters
To combine query parameters, use q
with the --data-urlencode
option. The other parameters can be added after the -d
option.
curl -G -X GET -H 'Authorization: Bearer access_token' -H "Accept:application/json" --data-urlencode "q={timewindow: '3d}" -d "expand=integration&offset=3&limit=16" https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/monitoring/errors?integrationInstance=service-instance