datadog_api/apis/
notebooks.rs

1use crate::{client::DatadogClient, models::NotebooksResponse, Result};
2
3/// API client for Datadog notebooks endpoints.
4pub struct NotebooksApi {
5    client: DatadogClient,
6}
7
8impl NotebooksApi {
9    /// Creates a new API client.
10    #[must_use]
11    pub const fn new(client: DatadogClient) -> Self {
12        Self { client }
13    }
14
15    pub async fn list_notebooks(&self) -> Result<NotebooksResponse> {
16        self.client.get("/api/v1/notebooks").await
17    }
18}