1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#[allow(unused_imports)]
use serde_json::Value;

#[derive(Debug, Serialize, Deserialize)]
pub struct NetworkDnscacheExtended {
    /// DNS cache entry limit
    #[serde(rename = "cache_entry_limit")]
    pub cache_entry_limit: Option<i32>,
    /// Timeout value for calls made to other nodes in the cluster
    #[serde(rename = "cluster_timeout")]
    pub cluster_timeout: Option<i32>,
    /// Timeout value for calls made to the dns resolvers
    #[serde(rename = "dns_timeout")]
    pub dns_timeout: Option<i32>,
    /// Lead time to refresh cache entries nearing expiration
    #[serde(rename = "eager_refresh")]
    pub eager_refresh: Option<i32>,
    /// Deltas for checking cbind cluster health
    #[serde(rename = "testping_delta")]
    pub testping_delta: Option<i32>,
    /// Upper bound on ttl for cache hits
    #[serde(rename = "ttl_max_noerror")]
    pub ttl_max_noerror: Option<i32>,
    /// Upper bound on ttl for nxdomain
    #[serde(rename = "ttl_max_nxdomain")]
    pub ttl_max_nxdomain: Option<i32>,
    /// Upper bound on ttl for non-nxdomain failures
    #[serde(rename = "ttl_max_other")]
    pub ttl_max_other: Option<i32>,
    /// Upper bound on ttl for server failures
    #[serde(rename = "ttl_max_servfail")]
    pub ttl_max_servfail: Option<i32>,
    /// Lower bound on ttl for cache hits
    #[serde(rename = "ttl_min_noerror")]
    pub ttl_min_noerror: Option<i32>,
    /// Lower bound on ttl for nxdomain
    #[serde(rename = "ttl_min_nxdomain")]
    pub ttl_min_nxdomain: Option<i32>,
    /// Lower bound on ttl for non-nxdomain failures
    #[serde(rename = "ttl_min_other")]
    pub ttl_min_other: Option<i32>,
    /// Lower bound on ttl for server failures
    #[serde(rename = "ttl_min_servfail")]
    pub ttl_min_servfail: Option<i32>,
}