Notification

Describes a condition relevant to the tool itself, as opposed to being relevant to a target being analyzed by the tool.

Constructors

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

Types

Link copied to clipboard
enum Level
A value specifying the severity level of the notification.

Properties

Link copied to clipboard
@SerializedName(value = "associatedRule")
@Expose
open var associatedRule: ReportingDescriptorReference
Information about how to locate a relevant reporting descriptor.
Link copied to clipboard
@SerializedName(value = "descriptor")
@Expose
open var descriptor: ReportingDescriptorReference
Information about how to locate a relevant reporting descriptor.
Link copied to clipboard
@SerializedName(value = "exception")
@Expose
open var exception: Exception
Describes a runtime exception encountered during the execution of an analysis tool.
Link copied to clipboard
@SerializedName(value = "level")
@Expose
open var level: Notification.Level
A value specifying the severity level of the notification.
Link copied to clipboard
@SerializedName(value = "locations")
@Expose
open var locations: Set<Location>
The locations relevant to this notification.
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 = "properties")
@Expose
open var properties: PropertyBag
Key/value pairs that provide additional information about the object.
Link copied to clipboard
@SerializedName(value = "threadId")
@Expose
open var threadId: Integer
The thread identifier of the code that generated the notification.
Link copied to clipboard
@SerializedName(value = "timeUtc")
@Expose
open var timeUtc: Instant
The Coordinated Universal Time (UTC) date and time at which the analysis tool generated the notification.

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
Link copied to clipboard
Link copied to clipboard
open fun withException(exception: Exception): Notification
Link copied to clipboard
Link copied to clipboard
open fun withLocations(locations: Set<Location>): Notification
Link copied to clipboard
open fun withMessage(message: Message): Notification
Link copied to clipboard
open fun withProperties(properties: PropertyBag): Notification
Link copied to clipboard
open fun withThreadId(threadId: Integer): Notification
Link copied to clipboard
open fun withTimeUtc(timeUtc: Instant): Notification