SDK reference / Models / Databases
PostgresInstance
Kind: class
Namespace: Egulu.Sdk.Models.Databases
One PostgreSQL server of a cluster: the primary or a read replica.
Properties
| Name | Type | JSON name | Description |
|---|---|---|---|
Connections | int? | connections | Client connections at the moment. |
InstanceId | string? | instanceId | The instance's name, for example `pg-1`. |
LagAlert | bool? | lagAlert | On a replica: whether its lag is above the cluster's alert threshold. |
ReplicationLagBytes | long? | replicationLagBytes | How far a replica is behind, in bytes of write-ahead log; 0 on the primary. |
ReplicationLagSeconds | double? | replicationLagSeconds | The same lag as a time, when it can be measured. |
Role | Models.Databases.PostgresInstance_role? | role | The role property |
StartedAt | DateTimeOffset? | startedAt | When the server last started. |
State | string? | state | RUNNING, STARTING, STOPPED or FAILED. |
StorageGib | int? | storageGib | The storage the server holds, in GiB. |
Synchronous | bool? | synchronous | On a replica: whether the primary counts it toward the quorum a commit waits for (HA tier). |