OutcodeBackendBugReporterRepository class
Files reports via the Outcode bot's /admin/api/bugs/ingest endpoint.
OutcodeBackendBugReporterRepository(
endpoint: 'https://bot.example.com/admin/api/bugs/ingest',
apiKey: const String.fromEnvironment('BUG_REPORTER_API_KEY'),
targetKey: const String.fromEnvironment('BUG_REPORTER_TARGET_KEY'),
)
- Implemented types
Constructors
- OutcodeBackendBugReporterRepository({required String endpoint, required String apiKey, required String targetKey, Client? client})
Properties
- apiKey → String
-
Scoped
bug:createAPI key. Low-privilege: files bugs only, via the bot.final - endpoint → String
-
Full URL of the bot's bug-ingest endpoint.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetKey → String
-
Project routing key (from the bot's Bug Trends tab). Selects the target list.
final
Methods
-
createReport(
CreateReportParams params) → Future< BugReportResponse> -
File one report. Must not throw for expected failures — return a
BugReportResponse with
success: falseand a message instead, so the reporter can queue the report for retry.override -
dispose(
) → void - Close the underlying HTTP client. Only needed if you created the repository without passing your own client and are tearing the reporter down.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited