Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Management API: Allow to filter actions by last status code #1311

Conversation

stefbehl
Copy link
Contributor

This PR enhances the resource collection "actions" with a new sort- and filter-field "lastStatusCode" which allows to filter the list of actions based on the last (numeric) status code that was reported by a target device.

For example, it can be used to locate all actions which failed with a specific error code.

API usage example:
/rest/v1/actions?q=lastStatusCode==1720

Copy link
Contributor

@StefanKlt StefanKlt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks @stefbehl

@bogdan-bondar bogdan-bondar merged commit b919ced into eclipse:master Jan 13, 2023
@bogdan-bondar bogdan-bondar deleted the feature/filter-actions-by-last-status-code branch January 13, 2023 11:12
@stefbehl stefbehl changed the title Management REST API: Allow to filter actions by last status code Management API: Allow to filter actions by last status code Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants