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

Plugin(notification::microsoft::office365::teams): Modify the URI build #5388

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

itoussies
Copy link
Contributor

Refs: MON-155920

Centreon team (internal PR)

Description

Modify how the URI is built to avoid setting '&' in macros (they are removed by Centreon Engine). Added a new option, --teams-workflow-params, to set the params.
Example:
perl ~/centreon-plugins/src/centreon_plugins.pl --plugin=notification::microsoft::office365::teams::plugin --mode=alert --custommode=workflowapi --teams-workflow='https://workflow.url:443/workflows/1045fa0c922a4b3780bd30244ed8395b/triggers/manual/paths/invoke' --notification-type='PROBLEM' --host-name='Test' --service-description='Deployment' --service-state='WARNING' --service-output='WARNING: output' --date='13-01-2024 17:00:00' --action-links --centreon-url='localhost' --extra-info='' --teams-workflow-params='param1' --teams-workflow-params='param2' --teams-workflow-params='param3'

Fixes # (issue)
Fix MON-155920

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

Modify how the URI is build to avoid setting '&'
in macros

Refs: MON-155920
@itoussies itoussies requested a review from a team as a code owner January 13, 2025 15:44
@itoussies itoussies requested a review from Evan-Adam January 13, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant