Monitoring interceptor interfaces
Interceptor
interface and optionally, one or more of its subinterfaces.
Before you study this topic, you should first be familiar with the information in Creating an interceptor.
Interceptor sub-interfaces are applicable in both zosConnect-2.0 and zosConnect-3.0 unless specified.- com.ibm.zosconnect.spi.Interceptor
- Implement this interface to obtain monitoring data for API requests into the z/OS Connect Server (API provider).
- com.ibm.zosconnect.spi.ServiceProviderInterceptor
- Implement this interface to obtain SoR specific monitoring data for API requests.
- com.ibm.zosconnect.spi.EarlyFailureInterceptor
- Implement this interface to monitor API requests that fail authentication or are badly formed.
- com.ibm.zosconnect.spi.EarlyFailureInterceptorRequester zosConnect-2.0
- Implement this interface to monitor API requests from a z/OS application that fail authentication or are badly formed.
- com.ibm.zosconnect.spi.InterceptorRequester
- Implement this interface to monitor API requests from a z/OS application that invoke a service in a REST endpoint.
- com.ibm.zosconnect.spi.EndpointInterceptor
- Implement this interface to obtain API endpoint-specific monitoring data for requests from a z/OS application.
- com.ibm.zosconnect.spi.TrackingInterceptor
- Implement this interface to selectively track API requests that invoke a service in a SoR. It enables a stakeholder to add their stakeholder token to the tracking token sent to the SoR.
For the Java™ API documentation, see z/OS Connect SPI. This documentation is also available as a separate file at <installation_path>/doc/javadoc.zip and <installation_path>/doc/javadoc.oas3.zip depending on which IBM z/OS Connect feature (zosConnect-2.0 or zosConnect-3.0) you are using.
z/OS Connect monitoring points for the API provider
z/OS Connect provides five points where interceptors can monitor requests for the API provider, as illustrated in Figure 1. The following diagram is an illustration for zosConnect-3.0 with the use of z/OS Assets. The only difference between the zosConnect-2.0 and zosConnect-3.0 implementations is that instead of a z/OS Asset, the zosConnect-2.0 implementation uses service and a service provider instead.
preInvoke- Required interface: Interceptor
preSorInvoke- Required interface: ServiceProviderInterceptor
postSorInvoke- Required interface: ServiceProviderInterceptor
postInvoke- Required interface: Interceptor
earlyFailure- Required interface: EarlyFailureInterceptor
z/OS Connect monitoring points for the API requester
z/OS Connect zosConnect-2.0 provides five monitoring points for the API requester, as illustrated in Figure 2.
z/OS Connect zosConnect-3.0 provides four monitoring points as illustrated in Figure 3.
preInvokeRequester- Required interface: Interceptor
preEndpointInvoke- Required interface: EndpointInterceptor
postEndpointInvoke- Required interface: EndpointInterceptor
postInvokeRequester- Required interface: Interceptor
earlyFailureRequester zosConnect-2.0- Required interface: EarlyFailureInterceptor