NetworkTarget class
Configuration for a specific network endpoint to be monitored.
A NetworkTarget combines an address, a port, and a protocol to
define a unique "probe point".
- Available extensions
Constructors
- NetworkTarget({required String label, required String host, required int port, required TargetProtocol protocol, required BigInt timeoutMs, required int priority, required bool isEssential})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- host → String
-
The remote address to check.
final
- isEssential → bool
-
If true, a failure of this target is treated as a severe network event.
final
- label → String
-
A human-readable identifier (e.g., "Google Cloud DNS", "Internal API").
This label is used in
TargetReportresults.final - port → int
-
The destination port for the check.
final
- priority → int
-
The relative priority of this target (lower numbers = higher priority).
final
- protocol → TargetProtocol
-
The network protocol to use for this specific probe.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeoutMs → BigInt
-
The maximum duration (in milliseconds) the engine should wait for a response.
final
Methods
-
copyWith(
{String? label, String? host, int? port, TargetProtocol? protocol, BigInt? timeoutMs, int? priority, bool? isEssential}) → NetworkTarget -
Available on NetworkTarget, provided by the NetworkTargetCopyWith extension
Returns a copy of the target configuration. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override