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

MTM-61873 - release notes - alarm/count returns 0 when more than one type specified #2881

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
date:
title: Type parameter in Alarm API now accepts multiple values
product_area: Platform services
change_type:
- value: change-VSkj2iV9m
label: Fix
component:
- value: component-JlFdtOPva
label: REST API
build_artifact:
- value: tc-QHwMfWtBk7
label: cumulocity
ticket: MTM-61873
version: 20.25.37.0
Copy link
Contributor

Choose a reason for hiding this comment

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

version looks wrong shouldn't it be 2025.37.0 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Most of the other release note entries add dot to version number, and that is also what we do internally in Jira. 2025.37.0 does look more correct but I didn't want to change the way we set the version here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We unfortunately have some inconsistencies here among the different build artifacts. I don´t know who is responsible for "cumulocity" to clarify this? We do not yet have any entries with "2025", the last ones are 10.20.664.0 or similar, so with a dot.

Copy link
Collaborator

Choose a reason for hiding this comment

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

At least take care to use the correct version for CD. I can unify the spelling later on. Any idea, whom I could ask?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please note that you cannot simply backport this entry as the version number is different for 2024 and 2025.

---
Previously, when retrieving the [total number of alarms](https://cumulocity.com/api/core/#operation/getAlarmCollectionCountResource)
the `type` parameter could only take a single value, despite the documentation stating otherwise. This issue has been fixed.
The `type` parameter now accepts multiple, comma-separated values.

`GET /alarm/alarms/count?type=c8y_UnavailabilityAlarm,c8y_TemperatureAlarm`