-
Notifications
You must be signed in to change notification settings - Fork 232
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
Add telemetry to shown notificaitons #5179
Conversation
Qodana Community for JVM6 new problems were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at [email protected]
|
@@ -18,6 +18,9 @@ | |||
import software.aws.toolkits.core.utils.inputStream | |||
import software.aws.toolkits.core.utils.warn | |||
import software.aws.toolkits.jetbrains.utils.notifyStickyWithData | |||
import software.aws.toolkits.telemetry.Component | |||
import software.aws.toolkits.telemetry.Result |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
@@ -18,6 +18,9 @@ | |||
import software.aws.toolkits.core.utils.inputStream | |||
import software.aws.toolkits.core.utils.warn | |||
import software.aws.toolkits.jetbrains.utils.notifyStickyWithData | |||
import software.aws.toolkits.telemetry.Component | |||
import software.aws.toolkits.telemetry.Result |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
@@ -18,6 +18,9 @@ | |||
import software.aws.toolkits.core.utils.inputStream | |||
import software.aws.toolkits.core.utils.warn | |||
import software.aws.toolkits.jetbrains.utils.notifyStickyWithData | |||
import software.aws.toolkits.telemetry.Component | |||
import software.aws.toolkits.telemetry.Result | |||
import software.aws.toolkits.telemetry.ToolkitTelemetry |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
@@ -18,6 +18,9 @@ | |||
import software.aws.toolkits.core.utils.inputStream | |||
import software.aws.toolkits.core.utils.warn | |||
import software.aws.toolkits.jetbrains.utils.notifyStickyWithData | |||
import software.aws.toolkits.telemetry.Component | |||
import software.aws.toolkits.telemetry.Result | |||
import software.aws.toolkits.telemetry.ToolkitTelemetry |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
@@ -98,6 +101,11 @@ | |||
BannerNotificationService.getInstance().addNotification(notificationData.id, bannerContent) | |||
notifyListenerForNotification(bannerContent) | |||
} | |||
ToolkitTelemetry.showNotification( |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
@@ -98,6 +101,11 @@ | |||
BannerNotificationService.getInstance().addNotification(notificationData.id, bannerContent) | |||
notifyListenerForNotification(bannerContent) | |||
} | |||
ToolkitTelemetry.showNotification( | |||
id = notificationData.id, | |||
result = Result.Succeeded, |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
Emit success metrics when notifications are successfully shown.
Types of changes
Description
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.