Werk #15551 · Mar 22, 23
downtime: make the show downtimes endpoint more explicit
Incompatible change. Existing setups may behave differently after upgrading. Review the details below before updating.
Prior to this werk, it was unclear under what circumstances the endpoint returned service, host or both types of downtimes. In short, specifying the host_name parameter limited the response to only return host downtimes. This werk introduces the downtime_type parameter in order to make it easier to filter the results. This parameter is optional as the same result can be achieved through the query parameter only.
Since the endpoint response is now more specific, user scripts must potentially be adjusted accordingly: * when the host_name parameter was previously specified, the user must now specify the downtime_type parameter to "host" in order to receive the same downtimes as before
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- REST API
- Versions:
- 2.3.0b1CommunityProUltimateUltimate + MT
- 2.2.0b2CommunityProUltimateUltimate + MT