Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30372,7 +30372,7 @@ components:
type: array
type: object
GetInvestigationResponse:
description: Response for a single Bits AI investigation.
description: Response for a single Bits AI SRE investigation.
properties:
data:
$ref: "#/components/schemas/GetInvestigationResponseData"
Expand Down Expand Up @@ -87059,7 +87059,7 @@ paths:
- user_access_manage
/api/v2/bits-ai/investigations:
get:
description: List all Bits AI investigations for the organization.
description: List all Bits AI SRE investigations for the organization.
operationId: ListInvestigations
parameters:
- description: Offset for pagination.
Expand Down Expand Up @@ -87126,9 +87126,9 @@ paths:
appKeyAuth: []
- AuthZ:
- bits_investigations_read
summary: List Bits AI investigations
summary: List Bits AI SRE investigations
tags:
- Bits AI
- Bits AI SRE
x-pagination:
limitParam: page[limit]
pageOffsetParam: page[offset]
Expand All @@ -87141,7 +87141,7 @@ paths:
**Note**: This endpoint is in preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
post:
description: Trigger a new Bits AI investigation based on a monitor alert.
description: Trigger a new Bits AI SRE investigation based on a monitor alert.
operationId: TriggerInvestigation
requestBody:
content:
Expand Down Expand Up @@ -87190,9 +87190,9 @@ paths:
appKeyAuth: []
- AuthZ:
- bits_investigations_write
summary: Trigger a Bits AI investigation
summary: Trigger a Bits AI SRE investigation
tags:
- Bits AI
- Bits AI SRE
x-codegen-request-body-name: body
"x-permission":
operator: OR
Expand All @@ -87203,7 +87203,7 @@ paths:
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/bits-ai/investigations/{id}:
get:
description: Get a specific Bits AI investigation by ID.
description: Get a specific Bits AI SRE investigation by ID.
operationId: GetInvestigation
parameters:
- description: The ID of the investigation.
Expand Down Expand Up @@ -87254,9 +87254,9 @@ paths:
appKeyAuth: []
- AuthZ:
- bits_investigations_read
summary: Get a Bits AI investigation
summary: Get a Bits AI SRE investigation
tags:
- Bits AI
- Bits AI SRE
"x-permission":
operator: OR
permissions:
Expand Down Expand Up @@ -132955,8 +132955,8 @@ tags:
sent from Identity Providers. Use these endpoints to manage your AuthN Mappings.
name: AuthN Mappings
- description: |-
Use the Bits AI endpoints to retrieve AI-powered investigations.
name: Bits AI
Use the Bits AI SRE endpoints to retrieve AI-powered investigations.
name: Bits AI SRE
- description: |-
Search or aggregate your CI Visibility pipeline events and send them to your Datadog site over HTTP. See the [CI Pipeline Visibility in Datadog page](https://docs.datadoghq.com/continuous_integration/pipelines/) for more information.
name: CI Visibility Pipelines
Expand Down
7 changes: 4 additions & 3 deletions LICENSE-3rdparty.csv
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ base64,https://github.com/marshallpierce/rust-base64,MIT OR Apache-2.0,Marshall
bitflags,https://github.com/bitflags/bitflags,MIT OR Apache-2.0,The Rust Project Developers
bumpalo,https://github.com/fitzgen/bumpalo,MIT OR Apache-2.0,Nick Fitzgerald <fitzgen@gmail.com>
bytes,https://github.com/tokio-rs/bytes,MIT,"Carl Lerche <me@carllerche.com>, Sean McArthur <sean@seanmonstar.com>"
cesu8,https://github.com/emk/cesu8-rs,Apache-2.0 OR MIT,Eric Kidd <git@randomhacks.net>
cfg-if,https://github.com/rust-lang/cfg-if,MIT OR Apache-2.0,Alex Crichton <alex@alexcrichton.com>
chacha20,https://github.com/RustCrypto/stream-ciphers,MIT OR Apache-2.0,RustCrypto Developers
chrono,https://github.com/chronotope/chrono,MIT OR Apache-2.0,The chrono Authors
Expand Down Expand Up @@ -79,8 +78,8 @@ indexmap,https://github.com/indexmap-rs/indexmap,Apache-2.0 OR MIT,The indexmap
ipnet,https://github.com/krisprice/ipnet,MIT OR Apache-2.0,Kris Price <kris@krisprice.nz>
iri-string,https://github.com/lo48576/iri-string,MIT OR Apache-2.0,YOSHIOKA Takuma <nop_thread@nops.red>
itoa,https://github.com/dtolnay/itoa,MIT OR Apache-2.0,David Tolnay <dtolnay@gmail.com>
jni,https://github.com/jni-rs/jni-rs,MIT OR Apache-2.0,Josh Chase <josh@prevoty.com>
jni-sys,https://github.com/jni-rs/jni-sys,MIT OR Apache-2.0,Steven Fackler <sfackler@gmail.com>
jni,https://github.com/jni-rs/jni-rs,MIT OR Apache-2.0,jni team
jni-macros,https://github.com/jni-rs/jni-rs,MIT OR Apache-2.0,The jni-macros Authors
jni-sys,https://github.com/jni-rs/jni-sys,MIT OR Apache-2.0,"Steven Fackler <sfackler@gmail.com>, Robert Bragg <robert@sixbynine.org>"
jni-sys-macros,https://github.com/jni-rs/jni-sys,MIT OR Apache-2.0,Robert Bragg <robert@sixbynine.org>
js-sys,https://github.com/wasm-bindgen/wasm-bindgen/tree/master/crates/js-sys,MIT OR Apache-2.0,The wasm-bindgen Developers
Expand Down Expand Up @@ -155,6 +154,8 @@ serde_urlencoded,https://github.com/nox/serde_urlencoded,MIT OR Apache-2.0,Antho
serde_with,https://github.com/jonasbb/serde_with,MIT OR Apache-2.0,"Jonas Bushart, Marcin Kaźmierczak"
serde_with_macros,https://github.com/jonasbb/serde_with,MIT OR Apache-2.0,Jonas Bushart
simd-adler32,https://github.com/mcountryman/simd-adler32,MIT,Marvin Countryman <me@maar.vin>
simd_cesu8,https://github.com/seancroach/simd_cesu8,Apache-2.0 OR MIT,Sean C. Roach <me@seancroach.dev>
simdutf8,https://github.com/rusticstuff/simdutf8,MIT OR Apache-2.0,Hans Kratz <hans@appfour.com>
slab,https://github.com/tokio-rs/slab,MIT,Carl Lerche <me@carllerche.com>
smallvec,https://github.com/servo/rust-smallvec,MIT OR Apache-2.0,The Servo Project Developers
socket2,https://github.com/rust-lang/socket2,MIT OR Apache-2.0,"Alex Crichton <alex@alexcrichton.com>, Thomas de Zeeuw <thomasdezeeuw@gmail.com>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Get a Bits AI investigation returns "OK" response
// Get a Bits AI SRE investigation returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_bits_ai::BitsAIAPI;
use datadog_api_client::datadogV2::api_bits_aisre::BitsAISREAPI;

#[tokio::main]
async fn main() {
let mut configuration = datadog::Configuration::new();
configuration.set_unstable_operation_enabled("v2.GetInvestigation", true);
let api = BitsAIAPI::with_config(configuration);
let api = BitsAISREAPI::with_config(configuration);
let resp = api.get_investigation("id".to_string()).await;
if let Ok(value) = resp {
println!("{:#?}", value);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// List Bits AI investigations returns "OK" response
// List Bits AI SRE investigations returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_bits_ai::BitsAIAPI;
use datadog_api_client::datadogV2::api_bits_ai::ListInvestigationsOptionalParams;
use datadog_api_client::datadogV2::api_bits_aisre::BitsAISREAPI;
use datadog_api_client::datadogV2::api_bits_aisre::ListInvestigationsOptionalParams;

#[tokio::main]
async fn main() {
let mut configuration = datadog::Configuration::new();
configuration.set_unstable_operation_enabled("v2.ListInvestigations", true);
let api = BitsAIAPI::with_config(configuration);
let api = BitsAISREAPI::with_config(configuration);
let resp = api
.list_investigations(ListInvestigationsOptionalParams::default())
.await;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// List Bits AI investigations returns "OK" response with pagination
// List Bits AI SRE investigations returns "OK" response with pagination
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_bits_ai::BitsAIAPI;
use datadog_api_client::datadogV2::api_bits_ai::ListInvestigationsOptionalParams;
use datadog_api_client::datadogV2::api_bits_aisre::BitsAISREAPI;
use datadog_api_client::datadogV2::api_bits_aisre::ListInvestigationsOptionalParams;
use futures_util::pin_mut;
use futures_util::stream::StreamExt;

#[tokio::main]
async fn main() {
let mut configuration = datadog::Configuration::new();
configuration.set_unstable_operation_enabled("v2.ListInvestigations", true);
let api = BitsAIAPI::with_config(configuration);
let api = BitsAISREAPI::with_config(configuration);
let response =
api.list_investigations_with_pagination(ListInvestigationsOptionalParams::default());
pin_mut!(response);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Trigger a Bits AI investigation returns "OK" response
// Trigger a Bits AI SRE investigation returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_bits_ai::BitsAIAPI;
use datadog_api_client::datadogV2::api_bits_aisre::BitsAISREAPI;
use datadog_api_client::datadogV2::model::MonitorAlertTriggerAttributes;
use datadog_api_client::datadogV2::model::TriggerAttributes;
use datadog_api_client::datadogV2::model::TriggerInvestigationRequest;
Expand All @@ -24,7 +24,7 @@ async fn main() {
));
let mut configuration = datadog::Configuration::new();
configuration.set_unstable_operation_enabled("v2.TriggerInvestigation", true);
let api = BitsAIAPI::with_config(configuration);
let api = BitsAISREAPI::with_config(configuration);
let resp = api.trigger_investigation(body).await;
if let Ok(value) = resp {
println!("{:#?}", value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use reqwest::header::{HeaderMap, HeaderValue};
use serde::{Deserialize, Serialize};
use std::io::Write;

/// ListInvestigationsOptionalParams is a struct for passing parameters to the method [`BitsAIAPI::list_investigations`]
/// ListInvestigationsOptionalParams is a struct for passing parameters to the method [`BitsAISREAPI::list_investigations`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct ListInvestigationsOptionalParams {
Expand Down Expand Up @@ -43,7 +43,7 @@ impl ListInvestigationsOptionalParams {
}
}

/// GetInvestigationError is a struct for typed errors of method [`BitsAIAPI::get_investigation`]
/// GetInvestigationError is a struct for typed errors of method [`BitsAISREAPI::get_investigation`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetInvestigationError {
Expand All @@ -52,7 +52,7 @@ pub enum GetInvestigationError {
UnknownValue(serde_json::Value),
}

/// ListInvestigationsError is a struct for typed errors of method [`BitsAIAPI::list_investigations`]
/// ListInvestigationsError is a struct for typed errors of method [`BitsAISREAPI::list_investigations`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListInvestigationsError {
Expand All @@ -61,7 +61,7 @@ pub enum ListInvestigationsError {
UnknownValue(serde_json::Value),
}

/// TriggerInvestigationError is a struct for typed errors of method [`BitsAIAPI::trigger_investigation`]
/// TriggerInvestigationError is a struct for typed errors of method [`BitsAISREAPI::trigger_investigation`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum TriggerInvestigationError {
Expand All @@ -70,20 +70,20 @@ pub enum TriggerInvestigationError {
UnknownValue(serde_json::Value),
}

/// Use the Bits AI endpoints to retrieve AI-powered investigations.
/// Use the Bits AI SRE endpoints to retrieve AI-powered investigations.
#[derive(Debug, Clone)]
pub struct BitsAIAPI {
pub struct BitsAISREAPI {
config: datadog::Configuration,
client: reqwest_middleware::ClientWithMiddleware,
}

impl Default for BitsAIAPI {
impl Default for BitsAISREAPI {
fn default() -> Self {
Self::with_config(datadog::Configuration::default())
}
}

impl BitsAIAPI {
impl BitsAISREAPI {
pub fn new() -> Self {
Self::default()
}
Expand Down Expand Up @@ -144,7 +144,7 @@ impl BitsAIAPI {
Self { config, client }
}

/// Get a specific Bits AI investigation by ID.
/// Get a specific Bits AI SRE investigation by ID.
pub async fn get_investigation(
&self,
id: String,
Expand All @@ -166,7 +166,7 @@ impl BitsAIAPI {
}
}

/// Get a specific Bits AI investigation by ID.
/// Get a specific Bits AI SRE investigation by ID.
pub async fn get_investigation_with_http_info(
&self,
id: String,
Expand Down Expand Up @@ -261,7 +261,7 @@ impl BitsAIAPI {
}
}

/// List all Bits AI investigations for the organization.
/// List all Bits AI SRE investigations for the organization.
pub async fn list_investigations(
&self,
params: ListInvestigationsOptionalParams,
Expand Down Expand Up @@ -320,7 +320,7 @@ impl BitsAIAPI {
}
}

/// List all Bits AI investigations for the organization.
/// List all Bits AI SRE investigations for the organization.
pub async fn list_investigations_with_http_info(
&self,
params: ListInvestigationsOptionalParams,
Expand Down Expand Up @@ -432,7 +432,7 @@ impl BitsAIAPI {
}
}

/// Trigger a new Bits AI investigation based on a monitor alert.
/// Trigger a new Bits AI SRE investigation based on a monitor alert.
pub async fn trigger_investigation(
&self,
body: crate::datadogV2::model::TriggerInvestigationRequest,
Expand All @@ -454,7 +454,7 @@ impl BitsAIAPI {
}
}

/// Trigger a new Bits AI investigation based on a monitor alert.
/// Trigger a new Bits AI SRE investigation based on a monitor alert.
pub async fn trigger_investigation_with_http_info(
&self,
body: crate::datadogV2::model::TriggerInvestigationRequest,
Expand Down
2 changes: 1 addition & 1 deletion src/datadogV2/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub mod api_audit;
pub mod api_authn_mappings;
pub mod api_aws_integration;
pub mod api_aws_logs_integration;
pub mod api_bits_ai;
pub mod api_bits_ai_sre;
pub mod api_case_management;
pub mod api_case_management_attribute;
pub mod api_case_management_type;
Expand Down
2 changes: 1 addition & 1 deletion src/datadogV2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub use self::api::api_audit;
pub use self::api::api_authn_mappings;
pub use self::api::api_aws_integration;
pub use self::api::api_aws_logs_integration;
pub use self::api::api_bits_ai;
pub use self::api::api_bits_ai_sre;
pub use self::api::api_case_management;
pub use self::api::api_case_management_attribute;
pub use self::api::api_case_management_type;
Expand Down
2 changes: 1 addition & 1 deletion src/datadogV2/model/model_get_investigation_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use serde::{Deserialize, Deserializer, Serialize};
use serde_with::skip_serializing_none;
use std::fmt::{self, Formatter};

/// Response for a single Bits AI investigation.
/// Response for a single Bits AI SRE investigation.
#[non_exhaustive]
#[skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize)]
Expand Down
Loading
Loading