Dynatrace class abstract
The main API of the flutter plugin which gives access to the functions of the native agents.
Constructors
- Dynatrace.new()
-
Factory which creates a Dynatrace object which is able to do the native
communication with the Mobile Agents.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addEventModifier(
EventModifier eventModifier) → void - Adds an event modifier. The execution of modifyEvent will be executed This public API is hidden for customer before sending event.
-
applyUserPrivacyOptions(
UserPrivacyOptions userPrivacyOptions, {Platform? platform}) → void -
Applies the specified
userPrivacyOptions
which contains information about crash reporting and data collection level. -
createHttpClient(
{Client? client, DynatraceHttpClientOptions options}) → DynatraceHttpClient -
Creates an httpClient that will instrument the called http requests.
You can use your own Http client via
client
. -
endSession(
{Platform? platform}) → void - Closes the session in the next possible moment.
-
enterAction(
String name, {Platform? platform}) → DynatraceRootAction -
Creating a DynatraceRootAction which is able to have child actions. If
you enter null or an empty String for the
name
you will get a root action which will be disabled. -
flushEvents(
{Platform? platform}) → void - Send events if necessary.
-
getCurrentAction(
) → DynatraceAction - Returns the last currently open root action.
-
getUserPrivacyOptions(
{Platform? platform}) → Future< UserPrivacyOptions> - Retrieve the currently used user privacy options.
-
identifyUser(
String? user, {Platform? platform}) → void -
Will attach a
user
to the session so you can identify the session later on. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeEventModifier(
EventModifier eventModifier) → void - Removes event modifier from modifier chain This public API is hidden for customer
-
reportCrash(
String? errorName, String reason, String stacktrace, {Platform? platform}) → Future< void> -
Report an error which contains a
stacktrace
and will therefor be reported as a real crash. The error includeserrorName
andreason
as well. -
reportCrashWithException(
String crashName, Exception exceptionObject, {String? reason, Platform? platform, StackTrace? stacktrace}) → Future< void> -
Report an error which contains an
exceptionObject
and will therefor be reported as a real crash. The error includescrashName
as well asreason
if you include it. asstacktrace
is not a part of exception class, it has to be reported separately -
reportDoubleValue(
String? valueName, double? value, {Platform? platform}) → void -
Reports a double
value
with a specifiedvalueName
. -
reportError(
String? errorName, int? errorCode, {Platform? platform}) → void -
Report an error with
errorName
anderrorCode
directly without any action.errorCode
is nullable but within implementation it has default value 0 -
reportErrorInAction(
String? errorName, int? errorCode, {Platform? platform}) → void -
Reports an error with a specified
errorName
,errorCode
. -
reportErrorStacktrace(
String errorName, String errorValue, String reason, String stacktrace, {Platform? platform}) → void -
Report an error with
errorName
,errorValue
,reason
andstacktrace
directly without any action. -
reportEvent(
String? eventName, {Platform? platform}) → void -
Reports an event with a specified
eventName
(but without any value). -
reportIntValue(
String? valueName, int? value, {Platform? platform}) → void -
Reports an int
value
with a specifiedvalueName
. -
reportStringValue(
String? valueName, String? value, {Platform? platform}) → void -
Reports a String
value
with a specifiedvalueName
. -
reportZoneStacktrace(
dynamic error, StackTrace stacktrace, {Platform? platform}) → Future< void> -
Report an error with
error
andstacktrace
inside of a zone. -
sendBizEvent(
String type, Map< String, dynamic> ? attributes, {Platform? platform}) → void -
With sendBizEvent, you can report a business event. These standalone events are being sent
detached from user actions or sessions. Sends an event with Mandatory event
type
and optionalattributes
. -
sendEvent(
Map< String, dynamic> json, dynamic context) → void -
Sends new type of event using json as map
Optional
context
can be an object which can be used for manipulation of the event This public API is hidden for customer -
sendExceptionEvent(
dynamic throwable, {StackTrace? stacktrace, Map< String, dynamic> fields}) → void -
Sends exception event through eventModifier
throwable
is dynamic object which can be exception or errorstacktrace
provided by customer - can be null.fields
custom fields which can be reported -
sendSessionPropertiesEvent(
Map< String, dynamic> json) → void - Sends session properties event using json as map This public API is hidden for customer
-
setGPSLocation(
double latitude, double longitude, {Platform? platform}) → void -
Sets the GPS location of the session with
latitude
andlongitude
. -
start(
Widget topLevelWidget, {Configuration configuration}) → Future< void> -
Start function which should be called to start the agent. The
topLevelWidget
is the widget which is starting the application. The Configuration contains default values for all properties. reportCrash value is true per default. -
startView(
String name) → void - A view refers to a view/screen/window which is presented to the user at any time. On every opening of a view the method can be called to highlight the current view context of the user. All events happening thereafter can be evaluated in context of that view. When another view was started previously, then this method will stop view monitoring for the previous view and start it for the current view.
-
startWithoutWidget(
{Configuration configuration}) → Future< void> - Start function which should be called to start the agent. This option will capture uncaught exceptions but will not capture zoned errors. The Configuration contains default values for all properties. reportCrash value is true per default.
-
stopView(
) → void - Stops monitoring of the view that was previously started via startView It will remove the view context and all events happening afterwards will be reported without view information.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited