DatabaseStatus class
Status
- Implemented types
Constructors
-
DatabaseStatus({required String health, required bool ready, required String engine, required String version, required int uptime, required DatabaseStatusConnections connections, required String syncMode, String? effectiveSyncMode, required bool syncDegraded, required int syncAcknowledgements, required int syncStandbyCount, required bool syncStateConfirmed, required List<
DatabaseStatusReplica> replicas, required List<DatabaseStatusVolume> volumes}) -
DatabaseStatus.fromMap(Map<
String, dynamic> map) -
factory
Properties
- connections → DatabaseStatusConnections
-
Connection statistics.
final
- effectiveSyncMode → String?
-
Replication sync mode the primary is actually enforcing. Null when high availability is disabled or the state could not be read.
final
- engine → String
-
Database engine: postgresql, mysql, or mongodb.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- health → String
-
Overall health status: healthy, degraded, or unhealthy.
final
- ready → bool
-
Whether the database is ready to accept connections.
final
-
replicas
→ List<
DatabaseStatusReplica> -
List of database replicas and their status. Every configured member appears, including one the backend has not brought up, which is reported as not healthy.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- syncAcknowledgements → int
-
Number of standby acknowledgements the primary waits for before a write is committed.
final
- syncDegraded → bool
-
Whether the enforced replication is weaker than the requested syncMode.
final
- syncMode → String
-
Requested replication sync mode. Possible values: async, sync, quorum. Compare with effectiveSyncMode for what the primary is enforcing.
final
- syncStandbyCount → int
-
Number of standbys registered with the primary for synchronous replication.
final
- syncStateConfirmed → bool
-
Whether the reported sync state was read from the engine. When false the state could not be confirmed and the other sync fields carry no reading.
final
- uptime → int
-
Database uptime in seconds.
final
- version → String
-
Database engine version.
final
-
volumes
→ List<
DatabaseStatusVolume> -
Storage volume information.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited