DatabaseInfo

Struct DatabaseInfo 

Source
pub struct DatabaseInfo {
Show 162 fields pub uid: u32, pub name: String, pub port: Option<u16>, pub status: Option<String>, pub memory_size: Option<u64>, pub memory_used: Option<u64>, pub type_: Option<String>, pub version: Option<String>, pub account_id: Option<u32>, pub action_uid: Option<String>, pub shards_count: Option<u32>, pub shard_list: Option<Vec<u32>>, pub sharding: Option<bool>, pub shards_placement: Option<String>, pub replication: Option<bool>, pub endpoints: Option<Vec<EndpointInfo>>, pub endpoint: Option<String>, pub endpoint_ip: Option<Vec<String>>, pub endpoint_node: Option<u32>, pub dns_address_master: Option<String>, pub persistence: Option<String>, pub data_persistence: Option<String>, pub eviction_policy: Option<String>, pub created_time: Option<String>, pub last_changed_time: Option<String>, pub last_backup_time: Option<String>, pub last_export_time: Option<String>, pub mtls_allow_weak_hashing: Option<bool>, pub mtls_allow_outdated_certs: Option<bool>, pub authentication_redis_pass: Option<String>, pub authentication_admin_pass: Option<String>, pub authentication_sasl_pass: Option<String>, pub authentication_sasl_uname: Option<String>, pub authentication_ssl_client_certs: Option<Vec<Value>>, pub authentication_ssl_crdt_certs: Option<Vec<Value>>, pub authorized_subjects: Option<Vec<Value>>, pub data_internode_encryption: Option<bool>, pub ssl: Option<bool>, pub tls_mode: Option<String>, pub enforce_client_authentication: Option<String>, pub default_user: Option<bool>, pub acl: Option<Value>, pub client_cert_subject_validation_type: Option<String>, pub compare_key_hslot: Option<bool>, pub dns_suffixes: Option<Vec<String>>, pub group_uid: Option<u32>, pub redis_cluster_enabled: Option<bool>, pub crdt: Option<bool>, pub crdt_enabled: Option<bool>, pub crdt_config_version: Option<u32>, pub crdt_replica_id: Option<u32>, pub crdt_ghost_replica_ids: Option<String>, pub crdt_featureset_version: Option<u32>, pub crdt_protocol_version: Option<u32>, pub crdt_guid: Option<String>, pub crdt_modules: Option<String>, pub crdt_replicas: Option<String>, pub crdt_sources: Option<Vec<Value>>, pub crdt_sync: Option<String>, pub crdt_sync_connection_alarm_timeout_seconds: Option<u32>, pub crdt_sync_dist: Option<bool>, pub crdt_syncer_auto_oom_unlatch: Option<bool>, pub crdt_xadd_id_uniqueness_mode: Option<String>, pub crdt_causal_consistency: Option<bool>, pub crdt_repl_backlog_size: Option<String>, pub master_persistence: Option<bool>, pub slave_ha: Option<bool>, pub slave_ha_priority: Option<u32>, pub replica_read_only: Option<bool>, pub replica_sources: Option<Vec<Value>>, pub replica_sync: Option<String>, pub replica_sync_connection_alarm_timeout_seconds: Option<u32>, pub replica_sync_dist: Option<bool>, pub repl_backlog_size: Option<String>, pub max_connections: Option<u32>, pub maxclients: Option<u32>, pub conns: Option<u32>, pub conns_type: Option<String>, pub max_client_pipeline: Option<u32>, pub max_pipelined: Option<u32>, pub aof_policy: Option<String>, pub max_aof_file_size: Option<u64>, pub max_aof_load_time: Option<u32>, pub activedefrag: Option<String>, pub active_defrag_cycle_max: Option<u32>, pub active_defrag_cycle_min: Option<u32>, pub active_defrag_ignore_bytes: Option<String>, pub active_defrag_max_scan_fields: Option<u32>, pub active_defrag_threshold_lower: Option<u32>, pub active_defrag_threshold_upper: Option<u32>, pub backup: Option<bool>, pub backup_failure_reason: Option<String>, pub backup_history: Option<u32>, pub backup_interval: Option<u32>, pub backup_interval_offset: Option<u32>, pub backup_location: Option<Value>, pub backup_progress: Option<f64>, pub backup_status: Option<String>, pub dataset_import_sources: Option<Vec<Value>>, pub import_failure_reason: Option<String>, pub import_progress: Option<f64>, pub import_status: Option<String>, pub export_failure_reason: Option<String>, pub export_progress: Option<f64>, pub export_status: Option<String>, pub skip_import_analyze: Option<String>, pub metrics_export_all: Option<bool>, pub generate_text_monitor: Option<bool>, pub email_alerts: Option<bool>, pub module_list: Option<Vec<Value>>, pub search: Option<bool>, pub timeseries: Option<bool>, pub bigstore: Option<bool>, pub bigstore_ram_size: Option<u64>, pub bigstore_max_ram_ratio: Option<u32>, pub bigstore_ram_weights: Option<Vec<Value>>, pub bigstore_version: Option<u32>, pub proxy_policy: Option<String>, pub oss_cluster: Option<bool>, pub oss_cluster_api_preferred_endpoint_type: Option<String>, pub oss_cluster_api_preferred_ip_type: Option<String>, pub oss_sharding: Option<bool>, pub redis_version: Option<String>, pub resp3: Option<bool>, pub disabled_commands: Option<String>, pub hash_slots_policy: Option<String>, pub shard_key_regex: Option<Vec<Value>>, pub shard_block_crossslot_keys: Option<bool>, pub shard_block_foreign_keys: Option<bool>, pub implicit_shard_key: Option<bool>, pub avoid_nodes: Option<Vec<String>>, pub use_nodes: Option<Vec<String>>, pub rack_aware: Option<bool>, pub auto_upgrade: Option<bool>, pub internal: Option<bool>, pub db_conns_auditing: Option<bool>, pub flush_on_fullsync: Option<bool>, pub use_selective_flush: Option<bool>, pub sync: Option<String>, pub sync_sources: Option<Vec<Value>>, pub sync_dedicated_threads: Option<u32>, pub syncer_mode: Option<String>, pub syncer_log_level: Option<String>, pub support_syncer_reconf: Option<bool>, pub gradual_src_mode: Option<String>, pub gradual_src_max_sources: Option<u32>, pub gradual_sync_mode: Option<String>, pub gradual_sync_max_shards_per_source: Option<u32>, pub slave_buffer: Option<String>, pub snapshot_policy: Option<Vec<Value>>, pub sched_policy: Option<String>, pub recovery_wait_time: Option<i32>, pub multi_commands_opt: Option<String>, pub throughput_ingress: Option<f64>, pub tracking_table_max_keys: Option<u32>, pub wait_command: Option<bool>, pub background_op: Option<Vec<Value>>, pub mkms: Option<bool>, pub roles_permissions: Option<Vec<Value>>, pub tags: Option<Vec<String>>, pub topology_epoch: Option<u32>, pub extra: Value,
}
Expand description

Database information from the REST API - 100% field coverage (152/152 fields)

Fields§

§uid: u32§name: String§port: Option<u16>§status: Option<String>§memory_size: Option<u64>§memory_used: Option<u64>§type_: Option<String>

Database type (e.g., “redis”, “memcached”)

§version: Option<String>§account_id: Option<u32>

Account and action tracking

§action_uid: Option<String>§shards_count: Option<u32>§shard_list: Option<Vec<u32>>§sharding: Option<bool>§shards_placement: Option<String>§replication: Option<bool>§endpoints: Option<Vec<EndpointInfo>>§endpoint: Option<String>§endpoint_ip: Option<Vec<String>>§endpoint_node: Option<u32>§dns_address_master: Option<String>§persistence: Option<String>§data_persistence: Option<String>§eviction_policy: Option<String>§created_time: Option<String>§last_changed_time: Option<String>§last_backup_time: Option<String>§last_export_time: Option<String>§mtls_allow_weak_hashing: Option<bool>§mtls_allow_outdated_certs: Option<bool>§authentication_redis_pass: Option<String>§authentication_admin_pass: Option<String>§authentication_sasl_pass: Option<String>§authentication_sasl_uname: Option<String>§authentication_ssl_client_certs: Option<Vec<Value>>§authentication_ssl_crdt_certs: Option<Vec<Value>>§authorized_subjects: Option<Vec<Value>>§data_internode_encryption: Option<bool>§ssl: Option<bool>§tls_mode: Option<String>§enforce_client_authentication: Option<String>§default_user: Option<bool>§acl: Option<Value>

ACL configuration

§client_cert_subject_validation_type: Option<String>

Client certificate subject validation type

§compare_key_hslot: Option<bool>

Compare key hslot

§dns_suffixes: Option<Vec<String>>

DNS suffixes for endpoints

§group_uid: Option<u32>

Group UID for the database

§redis_cluster_enabled: Option<bool>

Redis cluster mode enabled

§crdt: Option<bool>§crdt_enabled: Option<bool>§crdt_config_version: Option<u32>§crdt_replica_id: Option<u32>§crdt_ghost_replica_ids: Option<String>§crdt_featureset_version: Option<u32>§crdt_protocol_version: Option<u32>§crdt_guid: Option<String>§crdt_modules: Option<String>§crdt_replicas: Option<String>§crdt_sources: Option<Vec<Value>>§crdt_sync: Option<String>§crdt_sync_connection_alarm_timeout_seconds: Option<u32>§crdt_sync_dist: Option<bool>§crdt_syncer_auto_oom_unlatch: Option<bool>§crdt_xadd_id_uniqueness_mode: Option<String>§crdt_causal_consistency: Option<bool>§crdt_repl_backlog_size: Option<String>§master_persistence: Option<bool>§slave_ha: Option<bool>§slave_ha_priority: Option<u32>§replica_read_only: Option<bool>§replica_sources: Option<Vec<Value>>§replica_sync: Option<String>§replica_sync_connection_alarm_timeout_seconds: Option<u32>§replica_sync_dist: Option<bool>§repl_backlog_size: Option<String>§max_connections: Option<u32>§maxclients: Option<u32>§conns: Option<u32>§conns_type: Option<String>§max_client_pipeline: Option<u32>§max_pipelined: Option<u32>§aof_policy: Option<String>§max_aof_file_size: Option<u64>§max_aof_load_time: Option<u32>§activedefrag: Option<String>§active_defrag_cycle_max: Option<u32>§active_defrag_cycle_min: Option<u32>§active_defrag_ignore_bytes: Option<String>§active_defrag_max_scan_fields: Option<u32>§active_defrag_threshold_lower: Option<u32>§active_defrag_threshold_upper: Option<u32>§backup: Option<bool>§backup_failure_reason: Option<String>§backup_history: Option<u32>§backup_interval: Option<u32>§backup_interval_offset: Option<u32>§backup_location: Option<Value>§backup_progress: Option<f64>§backup_status: Option<String>§dataset_import_sources: Option<Vec<Value>>§import_failure_reason: Option<String>§import_progress: Option<f64>§import_status: Option<String>§export_failure_reason: Option<String>§export_progress: Option<f64>§export_status: Option<String>§skip_import_analyze: Option<String>§metrics_export_all: Option<bool>§generate_text_monitor: Option<bool>§email_alerts: Option<bool>§module_list: Option<Vec<Value>>§search: Option<bool>§timeseries: Option<bool>§bigstore: Option<bool>§bigstore_ram_size: Option<u64>§bigstore_max_ram_ratio: Option<u32>§bigstore_ram_weights: Option<Vec<Value>>§bigstore_version: Option<u32>§proxy_policy: Option<String>§oss_cluster: Option<bool>§oss_cluster_api_preferred_endpoint_type: Option<String>§oss_cluster_api_preferred_ip_type: Option<String>§oss_sharding: Option<bool>§redis_version: Option<String>§resp3: Option<bool>§disabled_commands: Option<String>§hash_slots_policy: Option<String>§shard_key_regex: Option<Vec<Value>>§shard_block_crossslot_keys: Option<bool>§shard_block_foreign_keys: Option<bool>§implicit_shard_key: Option<bool>§avoid_nodes: Option<Vec<String>>§use_nodes: Option<Vec<String>>§rack_aware: Option<bool>§auto_upgrade: Option<bool>§internal: Option<bool>§db_conns_auditing: Option<bool>§flush_on_fullsync: Option<bool>§use_selective_flush: Option<bool>§sync: Option<String>§sync_sources: Option<Vec<Value>>§sync_dedicated_threads: Option<u32>§syncer_mode: Option<String>§syncer_log_level: Option<String>§support_syncer_reconf: Option<bool>§gradual_src_mode: Option<String>§gradual_src_max_sources: Option<u32>§gradual_sync_mode: Option<String>§gradual_sync_max_shards_per_source: Option<u32>§slave_buffer: Option<String>§snapshot_policy: Option<Vec<Value>>§sched_policy: Option<String>§recovery_wait_time: Option<i32>§multi_commands_opt: Option<String>§throughput_ingress: Option<f64>§tracking_table_max_keys: Option<u32>§wait_command: Option<bool>§background_op: Option<Vec<Value>>§mkms: Option<bool>§roles_permissions: Option<Vec<Value>>§tags: Option<Vec<String>>§topology_epoch: Option<u32>§extra: Value

Capture any additional fields not explicitly defined

Trait Implementations§

Source§

impl Clone for DatabaseInfo

Source§

fn clone(&self) -> DatabaseInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DatabaseInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for DatabaseInfo

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for DatabaseInfo

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,