@@ -866,16 +866,16 @@ final class Event {
866866 },
867867 );
868868
869- /// Event that is emitted periodically to report the performance of plugins
870- /// when handling requests.
869+ /// Event that is emitted periodically to report the performance of analyzer
870+ /// plugins when handling requests.
871871 ///
872- /// [duration] - json encoded percentile values indicating how long it took
872+ /// [duration] - JSON- encoded percentile values indicating how long it took
873873 /// from the time the request was sent to the plugin until the response
874874 /// was processed by the server.
875875 ///
876876 /// [method] - the name of the request sent to the plugin.
877877 ///
878- /// [pluginId] - the id of the plugin whose performance is being reported.
878+ /// [pluginId] - the ID of the plugin whose performance is being reported.
879879 Event .pluginRequest ({
880880 required String duration,
881881 required String method,
@@ -889,16 +889,45 @@ final class Event {
889889 },
890890 );
891891
892+ /// Event that is emitted periodically to report information about how _new_
893+ /// analyzer plugins are used.
894+ ///
895+ /// - [count] - the number of new plugins that were configured.
896+ /// - [lintRuleCounts] - JSON-encoded percentile values indicating the number
897+ /// of enabled lint rules for each plugin.
898+ /// - [warningRuleCounts] - JSON-encoded percentile values indicating the
899+ /// number of enabled warning rules for each plugin.
900+ /// - [fixCounts] - JSON-encoded percentile values indicating the number of
901+ /// fixes provided by each plugin.
902+ /// - [assistCounts] - JSON-encoded percentile values indicating the number of
903+ /// assists provided by each plugin.
904+ Event .plugins ({
905+ required int count,
906+ required String lintRuleCounts,
907+ required String warningRuleCounts,
908+ required String fixCounts,
909+ required String assistCounts,
910+ }) : this ._(
911+ eventName: DashEvent .plugins,
912+ eventData: {
913+ 'count' : count,
914+ 'lintRuleCounts' : lintRuleCounts,
915+ 'warningRuleCounts' : warningRuleCounts,
916+ 'fixCounts' : fixCounts,
917+ 'assistCounts' : assistCounts,
918+ },
919+ );
920+
892921 /// Event that is emitted periodically to report the frequency with which a
893- /// given plugin has been used.
922+ /// given _legacy_ analyzer plugin has been used.
894923 ///
895924 /// [count] - the number of times plugins usage was changed, which will always
896925 /// be at least one.
897926 ///
898- /// [enabled] - json encoded percentile values indicating the number of
899- /// contexts for which the plugin was enabled.
927+ /// [enabled] - JSON- encoded percentile values indicating the number of
928+ /// analysis contexts for which the plugin was enabled.
900929 ///
901- /// [pluginId] - the id of the plugin associated with the data.
930+ /// [pluginId] - the ID of the plugin associated with the data.
902931 Event .pluginUse ({
903932 required int count,
904933 required String enabled,
0 commit comments