AppDynamics Xamarin SDK
2020.10.0
Real user monitoring for your Xamarin app.
|
Interact with the AppDynamics Agent running in your application. More...
Static Public Member Functions | |
static void | InitWithConfiguration (IAgentConfiguration iConfig) |
Initialize agent with an AgentConfiguration. More... | |
static void | ChangeAppKey (string appKey) |
Changes the app key. More... | |
static ICallTracker | BeginCall (string className, string methodName, params object[] arguments) |
Reports that an info point has started. More... | |
static void | EndCall (ICallTracker call, object returnValue=null) |
Reports that an info point has ended. More... | |
static void | EndCall (ICallTracker call, Exception e) |
Reports that an info point has ended with an Exception More... | |
static void | StartTimerWithName (string name) |
Starts a global timer with the given name. More... | |
static void | StopTimerWithName (string name) |
Stops a global timer with the given name and reports it. More... | |
static void | ReportMetricWithName (string name, long value) |
Reports metric value for the given name. More... | |
static void | LeaveBreadcrumb (string breadcrumb, BreadcrumbVisibility mode=BreadcrumbVisibility.CrashesOnly) |
Leaves a breadcrumb that will appear in a crash report and, optionally, session. More... | |
static void | SetUserData (string key, string value) |
Sets a key-value pair identifier that will be included in all snapshots. More... | |
static void | RemoveUserData (string key) |
Removes the user data. More... | |
static void | SetUserDataLong (string key, long value) |
Sets a key-value pair identifier that will be included in all snapshots. More... | |
static void | RemoveUserDataLong (string key) |
Removes the user data. More... | |
static void | SetUserDataBoolean (string key, bool value) |
Sets a key-value pair identifier that will be included in all snapshots. More... | |
static void | RemoveUserDataBoolean (string key) |
Removes the user data. More... | |
static void | SetUserDataDouble (string key, double value) |
Sets a key-value pair identifier that will be included in all snapshots. More... | |
static void | RemoveUserDataDouble (string key) |
Removes the user data. More... | |
static void | SetUserDataDate (string key, DateTime value) |
Sets a key-value pair identifier that will be included in all snapshots. More... | |
static void | RemoveUserDataDate (string key) |
Removes the user data. More... | |
static void | ReportError (Exception exception, ErrorSeverityLevel severity) |
Reports an error that was caught. More... | |
static void | StartNextSession () |
Starts next session and ends the current session. More... | |
static ISessionFrame | StartSessionFrame (string sessionFrameName) |
Starts a Session Frame. More... | |
Static Public Attributes | |
static bool | enableAggregateExceptionReporting = false |
Enables or disables the reporting of all exceptions as crashes. More... | |
Interact with the AppDynamics Agent running in your application.
This class provides a number of methods to interact with the AppDynamics Agent including:
About on-premise deployments: Some of the features described here require a minimum EUM server deployment version. Please refer to the following page for more information: https://docs.appdynamics.com/display/latest/Mobile+Agent+Version+and+Deployment+Support+Matrix
|
inlinestatic |
Reports that an info point has started.
className | The class containing the info point method. |
methodName | The name of the method that started execution. |
arguments | The arguments passed to this method. |
|
inlinestatic |
Changes the app key.
Older beacons/reports will be discarded when app key is changed.
Invoking this method has no effect unless the agent was already initialized.
appKey | App key. |
Exception | Thrown when parameter appKey is not the format of AD-AAA-BBB. |
|
inlinestatic |
Reports that an info point has ended.
call | CallTracker object. |
returnValue | The value returned by the method invocation - can be null. |
|
inlinestatic |
Reports that an info point has ended with an Exception
call | CallTracker object. |
e | Exception that occurred during method invocation. |
|
inlinestatic |
Initialize agent with an AgentConfiguration.
iConfig | Configuration. |
|
inlinestatic |
Leaves a breadcrumb that will appear in a crash report and, optionally, session.
Call this when something interesting happens in your application. The breadcrumb will be included in different reports depending on the mode.
Each crash report displays the most recent 99 breadcrumbs.
breadcrumb | The string to include in the crash report and sessions. If it is longer than 2048 characters, it will be truncated. |
mode | Visibility mode. |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Reports an error that was caught.
This can be called in catch blocks to report interesting errors that you want to track.
exception | The exception to report. |
severity | The severity level. |
|
inlinestatic |
Reports metric value for the given name.
The name can contain only alphanumeric characters and spaces.
name | Name of the metric key. |
value | Value reported for the given key. |
Exception | Thrown when parameter name is not in the right format. |
|
inlinestatic |
Sets a key-value pair identifier that will be included in all snapshots.
The identifier can be used to add any data you wish.
key
must be unique across your application. key
namespace is distinct for each user data type. key
overwrites the previous value
. key
and the value
are limited to 2048 characters. This information is not persisted across application runs. Once the application is destroyed, the user data is cleared.
key | Key. |
value | Value. |
|
inlinestatic |
Sets a key-value pair identifier that will be included in all snapshots.
key | Key. |
value | Value. |
|
inlinestatic |
Sets a key-value pair identifier that will be included in all snapshots.
key | Key. |
value | Value. |
|
inlinestatic |
Sets a key-value pair identifier that will be included in all snapshots.
key | Key. |
value | Value. |
|
inlinestatic |
Sets a key-value pair identifier that will be included in all snapshots.
key | Key. |
value | Value. |
|
inlinestatic |
Starts next session and ends the current session.
The session started using this API may be ended by inactivity timeout set in the Application Configuration, before the next call to this API.
This API makes some practical assumptions about session lengths among end users. Excessive use of this API will cause sessions to be throttled (as an indication, more than 10 calls per minute per agent is considered excessive and may, depending on other factors, cause throttling)
|
inlinestatic |
Starts a Session Frame.
sessionFrameName | The name of the session frame that will appear in the UI. |
<since>50.1</since>
|
inlinestatic |
Starts a global timer with the given name.
The name can contain only alphanumeric characters and spaces.
name | Name of the timer. |
Exception | Thrown when parameter name is not in the right format. |
|
inlinestatic |
Stops a global timer with the given name and reports it.
The name can contain only alphanumeric characters and spaces.
name | Name of the timer. |
Exception | Thrown when parameter name is not in the right format. |
|
static |
Enables or disables the reporting of all exceptions as crashes.
By default, the Xamarin agent will not report aggregate exceptions as a crash report. This switch can be used to enable this feature.
Default false
.