add
fun add(vendor: String, rule: String, type: SeverityType, description: String, source: Source, hash: String?, elements: List<String>, snapshots: List<String>, screenshots: List<Bitmap>, format: ImageFormat = ImageFormat.PNG)
Adds a new Result and merges duplicate snapshots and screenshots.
Parameters
vendor
The slug associated with the ai.abra.api.model.resources.VendorResource.
rule
The slug associated with the ai.abra.api.model.resources.RuleResource.
type
The SeverityType of the result.
description
The description of the result.
source
The Source of the result.
hash
An optional hash value for the result.
elements
An array of JSON elements.
snapshots
An array of JSON snapshots.
screenshots
An array of Bitmap screenshots.
format
The ImageFormat to use for the screenshots.