File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
plugin-api/src/main/java/org/sonar/api/batch/sensor Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
+ ## 11.3
3
+ * Introduce ` org.sonar.api.batch.sensor.SensorContext.addAnalysisData ` .
4
+
2
5
## 11.2
3
6
* Standard Severity BLOCKER is now mapped to Software Quality Impact Severity BLOCKER
4
7
* Standard Severity INFO is now mapped to Software Quality Impact Severity INFO
Original file line number Diff line number Diff line change 19
19
*/
20
20
package org .sonar .api .batch .sensor ;
21
21
22
+ import java .io .InputStream ;
22
23
import java .io .Serializable ;
23
24
import org .sonar .api .Beta ;
24
25
import org .sonar .api .SonarRuntime ;
@@ -280,4 +281,19 @@ public interface SensorContext {
280
281
* @since 10.9
281
282
*/
282
283
void addTelemetryProperty (String key , String value );
284
+
285
+ /**
286
+ * Internal service to send data for reporting.
287
+ *
288
+ * @param key The key must follow this convention: <plugin_key>.<entry_key>.
289
+ * where the plugin_key is your plugin key. Example: jvm.file_graph
290
+ * @param mimeType A valid MIME type, usage of custom type and additional parameters is encouraged.
291
+ * @param data The binary data to be added. The InputStream will be consumed once then closed during the method execution.
292
+ *
293
+ * @throws IllegalArgumentException if key, mimeType, or data parameter is null or invalid
294
+ * @throws IllegalStateException if the method is called by a plugin not developed by SonarSource SA
295
+ * @since 11.3
296
+ */
297
+ @ Beta
298
+ void addAnalysisData (String key , String mimeType , InputStream data );
283
299
}
You can’t perform that action at this time.
0 commit comments