This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): Add missing information to host and service endpoints (#8500)
* feat(api): add new APIs for resource host\service details Resolve MON-5071 * fix(style): improve code style Resolve MON-5071 * fix(api): show the parent downtimes and acknowledgement in Resource details endpoints Resolve MON-5071
- Loading branch information
Showing
17 changed files
with
780 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
config/packages/serializer/Centreon/Monitoring.Model.ResourceDetailsHost.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Centreon\Domain\Monitoring\Model\ResourceDetailsHost: | ||
exclusion_policy: none | ||
virtual_properties: | ||
getDuration: | ||
name: getDuration | ||
serialized_name: duration | ||
type: string | ||
groups: | ||
- 'resource_details_host' | ||
properties: | ||
tries: | ||
type: string | ||
accessor: | ||
getter: getTriesTranslatable | ||
groups: | ||
- 'resource_details_host' | ||
parent: | ||
type: Centreon\Domain\Monitoring\ResourceStatus | ||
groups: | ||
- 'resource_details_host' | ||
status: | ||
type: Centreon\Domain\Monitoring\ResourceStatus | ||
groups: | ||
- 'resource_details_host' | ||
poller_name: | ||
type: string | ||
groups: | ||
- 'resource_details_host' |
28 changes: 28 additions & 0 deletions
28
config/packages/serializer/Centreon/Monitoring.Model.ResourceDetailsService.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Centreon\Domain\Monitoring\Model\ResourceDetailsService: | ||
exclusion_policy: none | ||
virtual_properties: | ||
getDuration: | ||
name: getDuration | ||
serialized_name: duration | ||
type: string | ||
groups: | ||
- 'resource_details_service' | ||
properties: | ||
tries: | ||
type: string | ||
accessor: | ||
getter: getTriesTranslatable | ||
groups: | ||
- 'resource_details_service' | ||
parent: | ||
type: Centreon\Domain\Monitoring\ResourceStatus | ||
groups: | ||
- 'resource_details_service' | ||
status: | ||
type: Centreon\Domain\Monitoring\ResourceStatus | ||
groups: | ||
- 'resource_details_service' | ||
poller_name: | ||
type: string | ||
groups: | ||
- 'resource_details_service' |
Oops, something went wrong.