NetworkTarget class
Configuration for a specific network endpoint to be monitored.
- 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. Can be a domain name (google.com) or an IP address (8.8.8.8).
final
- isEssential → bool
-
If true, a failure of this specific target is considered a critical event.
final
- label → String
-
A human-readable identifier for the target (e.g., "Primary DNS", "API Gateway").
final
- port → int
-
The destination port for the check (e.g., 80 for HTTP, 443 for HTTPS, 53 for DNS).
final
- priority → int
-
The relative priority of this target (lower numbers = higher priority).
final
- protocol → TargetProtocol
-
The network protocol to use for the probe.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeoutMs → BigInt
-
The maximum time in milliseconds to wait for a response before timing out.
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
Creates a copy of NetworkTarget with the given fields replaced by the new values. -
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