Class RemoteDependencyTelemetry
java.lang.Object
com.microsoft.applicationinsights.telemetry.BaseTelemetry
com.microsoft.applicationinsights.telemetry.RemoteDependencyTelemetry
- All Implemented Interfaces:
Telemetry
Telemetry sent to Azure Application Insights about dependencies - that is, calls from your
application to external services such as databases or REST APIs.
-
Constructor Summary
ConstructorDescriptionCreates a new instance with the givenname
.RemoteDependencyTelemetry
(String dependencyName, String commandName, Duration duration, boolean success) Creates a new instance with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionGets the command name.protected RemoteDependencyData
getData()
Gets the duration.getId()
Gets the dependency id.Gets a map of application-defined request metrics.getName()
Gets the dependency name.boolean
Gets the Success property.Gets the target of this dependency.getType()
Gets the type property.void
setCommandName
(String commandName) Sets the command name.void
setDuration
(Duration duration) Sets the duration.void
Sets the dependency id.void
Sets the dependency name.void
setResultCode
(String value) void
setSuccess
(boolean value) Sets the Success property.void
Sets the target of this dependency.void
Sets the type property.Methods inherited from class com.microsoft.applicationinsights.telemetry.BaseTelemetry
getContext, getProperties, getTimestamp, initialize, setTimestamp
-
Constructor Details
-
RemoteDependencyTelemetry
public RemoteDependencyTelemetry(String dependencyName, String commandName, Duration duration, boolean success) Creates a new instance with the given parameters.- Parameters:
dependencyName
- The dependency name.commandName
- The command name or call details.duration
- How long it took to process the call.success
- Whether the remote call successful or not.
-
RemoteDependencyTelemetry
Creates a new instance with the givenname
. -
RemoteDependencyTelemetry
public RemoteDependencyTelemetry()
-
-
Method Details
-
getId
Gets the dependency id. -
setId
Sets the dependency id. -
getName
Gets the dependency name. -
setName
Sets the dependency name. -
getCommandName
Gets the command name. -
setCommandName
Sets the command name. -
getType
Gets the type property. -
setType
Sets the type property. -
getTarget
Gets the target of this dependency. -
setTarget
Sets the target of this dependency. -
setResultCode
-
getSuccess
public boolean getSuccess()Gets the Success property. -
setSuccess
public void setSuccess(boolean value) Sets the Success property. -
getDuration
Gets the duration. -
setDuration
Sets the duration. -
getResultCode
-
getMetrics
Gets a map of application-defined request metrics. -
getData
- Specified by:
getData
in classBaseTelemetry
-