docs: retention period values in Namespace client
Document the 0/null and negative value behaviours for retention periods in the namespace RPC client.pull/24376/head
parent
52ac1b97a9
commit
77ff4dc4b8
|
@ -33,8 +33,11 @@ impl Client {
|
||||||
|
|
||||||
/// Create a namespace
|
/// Create a namespace
|
||||||
///
|
///
|
||||||
/// `retention_period_ns` is the the retention period in nanoseconds, measured from `now()`.
|
/// `retention_period_ns` is the the retention period in nanoseconds,
|
||||||
/// `None` represents infinite retention (i.e. never drop data).
|
/// measured from `now()`. `None` represents infinite retention (i.e. never
|
||||||
|
/// drop data), and 0 is also mapped to `None` on the server side.
|
||||||
|
///
|
||||||
|
/// Negative retention periods are rejected, returning an error.
|
||||||
pub async fn create_namespace(
|
pub async fn create_namespace(
|
||||||
&mut self,
|
&mut self,
|
||||||
namespace: &str,
|
namespace: &str,
|
||||||
|
@ -53,8 +56,11 @@ impl Client {
|
||||||
|
|
||||||
/// Update retention for a namespace
|
/// Update retention for a namespace
|
||||||
///
|
///
|
||||||
/// `retention_period_ns` is the the retention period in nanoseconds, measured from `now()`.
|
/// `retention_period_ns` is the the retention period in nanoseconds,
|
||||||
/// `None` represents infinite retention (i.e. never drop data).
|
/// measured from `now()`. `None` represents infinite retention (i.e. never
|
||||||
|
/// drop data), and 0 is also mapped to `None` on the server side.
|
||||||
|
///
|
||||||
|
/// Negative retention periods are rejected, returning an error.
|
||||||
pub async fn update_namespace_retention(
|
pub async fn update_namespace_retention(
|
||||||
&mut self,
|
&mut self,
|
||||||
namespace: &str,
|
namespace: &str,
|
||||||
|
|
Loading…
Reference in New Issue