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
ConstructorsConstructorDescriptionCreates 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 RemoteDependencyDatagetData()Gets the duration.getId()Gets the dependency id.Gets a map of application-defined request metrics.getName()Gets the dependency name.booleanGets the Success property.Gets the target of this dependency.getType()Gets the type property.voidsetCommandName(String commandName) Sets the command name.voidsetDuration(Duration duration) Sets the duration.voidSets the dependency id.voidSets the dependency name.voidsetResultCode(String value) voidsetSuccess(boolean value) Sets the Success property.voidSets the target of this dependency.voidSets 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:
getDatain classBaseTelemetry
-