-
- All Implemented Interfaces:
-
com.datadog.android.rum.metric.networksettled.InitialResourceIdentifier
public final class TimeBasedInitialResourceIdentifier implements InitialResourceIdentifier
An InitialResourceIdentifier that validates the initial resource based on the time elapsed. The resource is considered initial if the time elapsed between creation of the view and the start of the resource is less than the provided threshold in milliseconds.By default, the threshold is set to 100 milliseconds.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classTimeBasedInitialResourceIdentifier.Companion
-
Constructor Summary
Constructors Constructor Description TimeBasedInitialResourceIdentifier(Long timeThresholdInMilliseconds)
-
Method Summary
-
-
Constructor Detail
-
TimeBasedInitialResourceIdentifier
TimeBasedInitialResourceIdentifier(Long timeThresholdInMilliseconds)
- Parameters:
timeThresholdInMilliseconds- The threshold in milliseconds.
-
-
Method Detail
-
validate
Boolean validate(NetworkSettledResourceContext context)
Validates whether the given network resource context meets the criteria for an initial resource.
- Parameters:
context- The context of the network resource to validate.
-
-
-
-