Insight class

Insight

Implemented types

Constructors

Insight({required String $id, required String $createdAt, required String $updatedAt, required String reportId, required String type, required String severity, required String status, required String resourceType, required String resourceId, required String parentResourceType, required String parentResourceId, required String title, required String summary, required List<InsightCTA> ctas, String? analyzedAt, String? dismissedAt, String? dismissedBy})
Insight.fromMap(Map<String, dynamic> map)
factory

Properties

$createdAt String
Insight creation date in ISO 8601 format.
final
$id String
Insight ID.
final
$updatedAt String
Insight update date in ISO 8601 format.
final
analyzedAt String?
Time the insight was analyzed in ISO 8601 format.
final
ctas List<InsightCTA>
List of call-to-action buttons attached to this insight.
final
dismissedAt String?
Time the insight was dismissed in ISO 8601 format. Empty when not dismissed.
final
dismissedBy String?
User ID that dismissed the insight. Empty when not dismissed.
final
hashCode int
The hash code for this object.
no setterinherited
parentResourceId String
ID of the parent resource. Empty when the resource has no parent.
final
parentResourceType String
Plural noun for the parent resource that contains the insight's resource, e.g. an insight about a column index on a table → resourceType=indexes, parentResourceType=tables. Empty when the resource has no parent.
final
reportId String
Parent report ID. Insights always belong to a report.
final
resourceId String
ID of the resource the insight is about.
final
resourceType String
Type of the resource the insight is about. Plural noun, e.g. databases, sites, functions.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity String
Insight severity. One of info, warning, critical.
final
status String
Insight status. One of active, dismissed.
final
summary String
Short markdown summary describing the insight.
final
title String
Insight title.
final
type String
Insight type. One of databaseIndex (legacy), tablesDBIndex, documentsDBIndex, vectorsDBIndex, databasePerformance, sitePerformance, siteAccessibility, siteSeo, functionPerformance. The index types are engine-specific so each CTA can pair the right service+method (databases.createIndex, tablesDB.createIndex, documentsDB.createIndex, or vectorsDB.createIndex).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited