Skip to content

Conversation

@itoussies
Copy link
Contributor

@itoussies itoussies commented Dec 9, 2025

Refs:CTOR-2085

Centreon team (internal PR)

Description

  • Fixed the path when searching the metric unit. Moreover, put '' instead of 'undef' for the unit if the API doesn't return the unit field.
  • Added a new message when we can't find any metrics or when the API does not return the mean or count values for distribution metrics:
UNKNOWN: No metrics. Check your options or check GCP API distribution metrics' time series points returns the mean or count vlaues.
  • Moved the test folder from tests/gcp to tests/google/gcp so we have the same folder path as the src folder.

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Functionality enhancement or optimization (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software

How this pull request can be tested ?

Please describe the procedure to verify that the goal of the PR is matched.
Provide clear instructions so that it can be correctly tested.
Mention the automated tests included in this FOR (what they test like mode/option combinations).

Checklist

  • I have followed the coding style guidelines provided by Centreon
  • I have commented my code, especially hard-to-understand areas of the PR.
  • I have rebased my development branch on the base branch (develop).
  • In case of a new plugin, I have created the new packaging directory accordingly.
  • I have implemented automated tests related to my commits.
    • Data used for automated tests are anonymized.
  • I have reviewed all the help messages in all the .pm files I have modified.
    • All sentences begin with a capital letter.
    • All sentences end with a period.
    • I am able to understand all the help messages, if not, exchange with the PO or TW to rewrite them.
  • After having created the PR, I will make sure that all the tests provided in this PR have run and passed.

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Logo
Checkmarx One – Scan Summary & Detailsf9ee2a47-a385-4524-ba10-167c2f826fa5

Great job! No new security vulnerabilities introduced in this pull request

sc979
sc979 previously approved these changes Dec 10, 2025
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.

3 participants