-
Notifications
You must be signed in to change notification settings - Fork 102
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
[BUG] Missing ctx variables for Actions #200
Comments
Including #50 here as well since the documentation shows |
Here is a breakdown of all the Monitor variables
Trigger variables
Action variables
Other variables
Below are also the TriggerExecutionContext: alerting/alerting/src/main/kotlin/org/opensearch/alerting/script/TriggerExecutionContext.kt Lines 52 to 60 in 15bb70b
QueryLevelTriggerExecutionContext: Lines 45 to 50 in 15bb70b
BucketLevelTriggerExecutionContext: Lines 49 to 56 in 15bb70b
Monitor: alerting/alerting/src/main/kotlin/org/opensearch/alerting/model/Monitor.kt Lines 145 to 147 in 15bb70b
QueryLevelTrigger: alerting/alerting/src/main/kotlin/org/opensearch/alerting/model/QueryLevelTrigger.kt Lines 75 to 80 in 15bb70b
BucketLevelTrigger: alerting/alerting/src/main/kotlin/org/opensearch/alerting/model/BucketLevelTrigger.kt Lines 82 to 90 in 15bb70b
Action: alerting/alerting/src/main/kotlin/org/opensearch/alerting/model/action/Action.kt Lines 97 to 99 in 15bb70b
|
The |
After some discussion, the table above now reflects the current state of what is planned to be supported and what isn't. There will also need to be a separate PR for the documentation for changes needed there, those will refer back to this issue for tracking purposes. Do note that once the |
Can someone provide details about above mentioned tables? For example, we are trying to add two variables to the message in Action:
It appear in preview but is empty in final destination - Slack in our case. |
- Issue opensearch-project/alerting#200 Signed-off-by: Petar Partlov <p.partlov@paysend.com>
- Issue opensearch-project/alerting#200 Signed-off-by: Petar Partlov <partlov@gmail.com>
- Issue opensearch-project/alerting#200 Signed-off-by: Petar Partlov <partlov@gmail.com>
- Issue opensearch-project/alerting#200 Signed-off-by: Petar Partlov <partlov@gmail.com>
- Issue opensearch-project/alerting#200 Signed-off-by: Petar Partlov <partlov@gmail.com>
- Issue opensearch-project/alerting#200 Signed-off-by: Petar Partlov <partlov@gmail.com>
- Issue opensearch-project/alerting#200 Signed-off-by: Petar Partlov <partlov@gmail.com>
- Issue opensearch-project/alerting#200 Signed-off-by: Petar Partlov <partlov@gmail.com>
- Issue opensearch-project/alerting#200 Signed-off-by: Petar Partlov <partlov@gmail.com>
- Issue opensearch-project/alerting#200 Signed-off-by: Petar Partlov <partlov@gmail.com>
- Issue opensearch-project/alerting#200 Signed-off-by: Petar Partlov <partlov@gmail.com>
- Issue opensearch-project/alerting#200 Signed-off-by: Petar Partlov <partlov@gmail.com>
- Issue opensearch-project/alerting#200 - Make documentation consistent with code Signed-off-by: Petar Partlov <partlov@gmail.com>
PRs created for code and documentation changes |
Neither the PR (#504) nor the documentation changes have been made for this issue @praveensameneni. The PR will need to be rebased and merged and we need the documentation changes completely (across both ODFE and OpenSearch for consistency) before closing this out. Update: It appears @partlov's PR is the most up to date since the contents of the |
- Issue opensearch-project/alerting#200 Signed-off-by: Petar Partlov <partlov@gmail.com>
Is this scheduled to be part of an official release? I would really like to be able to include the monitor query and its components in some of my alert messages. |
@CarolynRemacle This issue should be fixed with this PR and will be available in the next release: opensearch-project/common-utils#710 |
Describe the bug
There is a discrepancy between the
ctx
variables mentioned in the documentation and those actually made available in the plugin.Expected behavior
The available
ctx
variables should match what the documentation details.Additional context
This is not a regression as it seems we never supported the missing
ctx
variables. However, since I believe that the missingctx
variables would be useful to users, we should add them to the plugin instead of amending the documentation.The text was updated successfully, but these errors were encountered: