Result

open class Result : PropertyOwner

A result produced by an analysis tool.

Constructors

Link copied to clipboard
constructor()
No args constructor for use in serialization
constructor(message: Message)

Types

Link copied to clipboard
The state of a result relative to a baseline of a previous run.
Link copied to clipboard
enum Kind
A value that categorizes results by evaluation state.

Properties

Link copied to clipboard
@SerializedName(value = "analysisTarget")
@Expose
open var analysisTarget: ArtifactLocation
Specifies the location of an artifact.
Link copied to clipboard
@SerializedName(value = "attachments")
@Expose
open var attachments: Set<Attachment>
A set of artifacts relevant to the result.
Link copied to clipboard
@SerializedName(value = "baselineState")
@Expose
open var baselineState: Result.BaselineState
The state of a result relative to a baseline of a previous run.
Link copied to clipboard
@SerializedName(value = "codeFlows")
@Expose
open var codeFlows: List<CodeFlow>
An array of 'codeFlow' objects relevant to the result.
Link copied to clipboard
@SerializedName(value = "correlationGuid")
@Expose
open var correlationGuid: String
A stable, unique identifier for the equivalence class of logically identical results to which this result belongs, in the form of a GUID.
Link copied to clipboard
@SerializedName(value = "fingerprints")
@Expose
open var fingerprints: VersionedMap<String>
A set of strings each of which individually defines a stable, unique identity for the result.
Link copied to clipboard
@SerializedName(value = "fixes")
@Expose
open var fixes: Set<Fix>
An array of 'fix' objects, each of which represents a proposed fix to the problem indicated by the result.
Link copied to clipboard
@SerializedName(value = "graphs")
@Expose
open var graphs: Set<Graph>
An array of zero or more unique graph objects associated with the result.
Link copied to clipboard
@SerializedName(value = "graphTraversals")
@Expose
open var graphTraversals: Set<GraphTraversal>
An array of one or more unique 'graphTraversal' objects.
Link copied to clipboard
@SerializedName(value = "guid")
@Expose
open var guid: String
A stable, unique identifer for the result in the form of a GUID.
Link copied to clipboard
@SerializedName(value = "hostedViewerUri")
@Expose
open var hostedViewerUri: URI
An absolute URI at which the result can be viewed.
Link copied to clipboard
@SerializedName(value = "kind")
@Expose
open var kind: Result.Kind
A value that categorizes results by evaluation state.
Link copied to clipboard
@SerializedName(value = "level")
@Expose
open var level: Level
A value specifying the severity level of the result.
Link copied to clipboard
@SerializedName(value = "locations")
@Expose
open var locations: List<Location>
The set of locations where the result was detected.
Link copied to clipboard
@SerializedName(value = "message")
@Expose
open var message: Message
Encapsulates a message intended to be read by the end user.
Link copied to clipboard
@SerializedName(value = "occurrenceCount")
@Expose
open var occurrenceCount: Integer
A positive integer specifying the number of times this logically unique result was observed in this run.
Link copied to clipboard
@SerializedName(value = "partialFingerprints")
@Expose
open var partialFingerprints: VersionedMap<String>
A set of strings that contribute to the stable, unique identity of the result.
Link copied to clipboard
@SerializedName(value = "properties")
@Expose
open var properties: PropertyBag
Key/value pairs that provide additional information about the object.
Link copied to clipboard
@SerializedName(value = "provenance")
@Expose
open var provenance: ResultProvenance
Contains information about how and when a result was detected.
Link copied to clipboard
@SerializedName(value = "rank")
@Expose
open var rank: Double
A number representing the priority or importance of the result.
Link copied to clipboard
@SerializedName(value = "relatedLocations")
@Expose
open var relatedLocations: Set<Location>
A set of locations relevant to this result.
Link copied to clipboard
@SerializedName(value = "rule")
@Expose
open var rule: ReportingDescriptorReference
Information about how to locate a relevant reporting descriptor.
Link copied to clipboard
@SerializedName(value = "ruleId")
@Expose
open var ruleId: String
The stable, unique identifier of the rule, if any, to which this result is relevant.
Link copied to clipboard
@SerializedName(value = "ruleIndex")
@Expose
open var ruleIndex: Integer
The index within the tool component rules array of the rule object associated with this result.
Link copied to clipboard
@SerializedName(value = "stacks")
@Expose
open var stacks: Set<Stack>
An array of 'stack' objects relevant to the result.
Link copied to clipboard
@SerializedName(value = "suppressions")
@Expose
open var suppressions: Set<Suppression>
A set of suppressions relevant to this result.
Link copied to clipboard
@SerializedName(value = "taxa")
@Expose
open var taxa: Set<ReportingDescriptorReference>
An array of references to taxonomy reporting descriptors that are applicable to the result.
Link copied to clipboard
@SerializedName(value = "webRequest")
@Expose
open var webRequest: WebRequest
Describes an HTTP request.
Link copied to clipboard
@SerializedName(value = "webResponse")
@Expose
open var webResponse: WebResponse
Describes the response to an HTTP request.
Link copied to clipboard
@SerializedName(value = "workItemUris")
@Expose
open var workItemUris: Set<URI>
The URIs of the work items associated with this result.

Functions

Link copied to clipboard
open fun equals(other: Any): Boolean
Link copied to clipboard
abstract fun getProperties(): PropertyBag
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
abstract fun setProperties(<set-?>: PropertyBag)
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun updateProperties(mutator: (in PropertyBag) -> Unit)
Link copied to clipboard
open fun withAnalysisTarget(analysisTarget: ArtifactLocation): Result
Link copied to clipboard
open fun withAttachments(attachments: Set<Attachment>): Result
Link copied to clipboard
Link copied to clipboard
open fun withCodeFlows(codeFlows: List<CodeFlow>): Result
Link copied to clipboard
open fun withCorrelationGuid(correlationGuid: String): Result
Link copied to clipboard
open fun withFingerprints(fingerprints: VersionedMap<String>): Result
Link copied to clipboard
open fun withFixes(fixes: Set<Fix>): Result
Link copied to clipboard
open fun withGraphs(graphs: Set<Graph>): Result
Link copied to clipboard
open fun withGraphTraversals(graphTraversals: Set<GraphTraversal>): Result
Link copied to clipboard
open fun withGuid(guid: String): Result
Link copied to clipboard
open fun withHostedViewerUri(hostedViewerUri: URI): Result
Link copied to clipboard
open fun withKind(kind: Result.Kind): Result
Link copied to clipboard
open fun withLevel(level: Level): Result
Link copied to clipboard
open fun withLocations(locations: List<Location>): Result
Link copied to clipboard
open fun withMessage(message: Message): Result
Link copied to clipboard
open fun withOccurrenceCount(occurrenceCount: Integer): Result
Link copied to clipboard
open fun withPartialFingerprints(partialFingerprints: VersionedMap<String>): Result
Link copied to clipboard
open fun withProperties(properties: PropertyBag): Result
Link copied to clipboard
open fun withProvenance(provenance: ResultProvenance): Result
Link copied to clipboard
open fun withRank(rank: Double): Result
Link copied to clipboard
open fun withRelatedLocations(relatedLocations: Set<Location>): Result
Link copied to clipboard
Link copied to clipboard
open fun withRuleId(ruleId: String): Result
Link copied to clipboard
open fun withRuleIndex(ruleIndex: Integer): Result
Link copied to clipboard
open fun withStacks(stacks: Set<Stack>): Result
Link copied to clipboard
open fun withSuppressions(suppressions: Set<Suppression>): Result
Link copied to clipboard
Link copied to clipboard
open fun withWebRequest(webRequest: WebRequest): Result
Link copied to clipboard
open fun withWebResponse(webResponse: WebResponse): Result
Link copied to clipboard
open fun withWorkItemUris(workItemUris: Set<URI>): Result