pub struct SubscriptionDatabaseSpec {Show 17 fields
pub name: String,
pub protocol: String,
pub memory_limit_in_gb: Option<f64>,
pub dataset_size_in_gb: Option<f64>,
pub support_oss_cluster_api: Option<bool>,
pub data_persistence: Option<String>,
pub replication: Option<bool>,
pub throughput_measurement: Option<DatabaseThroughputSpec>,
pub local_throughput_measurement: Option<Vec<LocalThroughput>>,
pub modules: Option<Vec<DatabaseModuleSpec>>,
pub quantity: Option<i32>,
pub average_item_size_in_bytes: Option<i64>,
pub resp_version: Option<String>,
pub redis_version: Option<String>,
pub sharding_type: Option<String>,
pub query_performance_factor: Option<String>,
pub extra: Value,
}
Expand description
One or more database specification(s) to create in this subscription.
Fields§
§name: String
Name of the database. Database name is limited to 40 characters or less and must include only letters, digits, and hyphens (‘-’). It must start with a letter and end with a letter or digit.
protocol: String
Optional. Database protocol. Only set to ‘memcached’ if you have a legacy application. Default: ‘redis’
memory_limit_in_gb: Option<f64>
Optional. Total memory in GB, including replication and other overhead. You cannot set both datasetSizeInGb and totalMemoryInGb.
dataset_size_in_gb: Option<f64>
Optional. The maximum amount of data in the dataset for this database in GB. You cannot set both datasetSizeInGb and totalMemoryInGb. If ‘replication’ is ‘true’, the database’s total memory will be twice as large as the datasetSizeInGb.If ‘replication’ is false, the database’s total memory will be the datasetSizeInGb value.
support_oss_cluster_api: Option<bool>
Optional. Support Redis OSS Cluster API. Default: ‘false’
data_persistence: Option<String>
Optional. Type and rate of data persistence in persistent storage. Default: ‘none’
replication: Option<bool>
Optional. Databases replication. Default: ‘true’
throughput_measurement: Option<DatabaseThroughputSpec>
§local_throughput_measurement: Option<Vec<LocalThroughput>>
Optional. Expected throughput per region for an Active-Active database. Default: 1000 read and write ops/sec for each region
modules: Option<Vec<DatabaseModuleSpec>>
Optional. Redis advanced capabilities (also known as modules) to be provisioned in the database. Use GET /database-modules to get a list of available advanced capabilities.
quantity: Option<i32>
Optional. Number of databases that will be created with these settings. Default: 1
average_item_size_in_bytes: Option<i64>
Optional. Relevant only to ram-and-flash (also known as Auto Tiering) subscriptions. Estimated average size in bytes of the items stored in the database. Default: 1000
resp_version: Option<String>
Optional. Redis Serialization Protocol version. Must be compatible with Redis version.
redis_version: Option<String>
Optional. If specified, redisVersion defines the Redis database version. If omitted, the Redis version will be set to the default version (available in ‘GET /subscriptions/redis-versions’)
sharding_type: Option<String>
Optional. Database Hashing policy.
query_performance_factor: Option<String>
Optional. The query performance factor adds extra compute power specifically for search and query databases. You can increase your queries per second by the selected factor.
extra: Value
Additional fields from the API
Trait Implementations§
Source§impl Clone for SubscriptionDatabaseSpec
impl Clone for SubscriptionDatabaseSpec
Source§fn clone(&self) -> SubscriptionDatabaseSpec
fn clone(&self) -> SubscriptionDatabaseSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more