create

suspend fun create(screenId: String, vendor: String, rule: String, type: SeverityType, description: String, source: Source, hash: String?, snapshots: List<String>?, screenshots: List<Bitmap>?, format: ImageFormat = ImageFormat.PNG): Result<ResultResource, Exception>

Create a result for a screen.

Parameters

screenId

The screen ID.

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 severity type, SeverityType.

description

The result description.

source

The source type, Source.

hash

The hash (optional).

snapshots

The list of snapshots (optional).

screenshots

The list of screenshots (optional).

format

The ImageFormat to use for the screenshots.


suspend fun create(screenId: String, results: Results): Result<MessageResponse, Exception>

Create multiple results for a screen.

Parameters

screenId

The screen ID.

results

The results container with data, snapshots and screenshots