Skip to content

Commit 994af6f

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add new bits_ai usage attribution type to Usage Attribution Public API Documentation (#1124)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent ed55b93 commit 994af6f

File tree

4 files changed

+61
-0
lines changed

4 files changed

+61
-0
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4281,6 +4281,7 @@ components:
42814281
- appsec_usage
42824282
- asm_serverless_traced_invocations_usage
42834283
- asm_serverless_traced_invocations_percentage
4284+
- bits_ai_investigations_usage
42844285
- browser_usage
42854286
- ci_pipeline_indexed_spans_usage
42864287
- ci_test_indexed_spans_usage
@@ -4364,6 +4365,7 @@ components:
43644365
- APPSEC_USAGE
43654366
- ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE
43664367
- ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE
4368+
- BITS_AI_INVESTIGATIONS_USAGE
43674369
- BROWSER_USAGE
43684370
- CI_PIPELINE_INDEXED_SPANS_USAGE
43694371
- CI_TEST_INDEXED_SPANS_USAGE
@@ -8702,6 +8704,8 @@ components:
87028704
- appsec_percentage
87038705
- asm_serverless_traced_invocations_usage
87048706
- asm_serverless_traced_invocations_percentage
8707+
- bits_ai_investigations_usage
8708+
- bits_ai_investigations_percentage
87058709
- browser_usage
87068710
- browser_percentage
87078711
- ci_visibility_itr_usage
@@ -8863,6 +8867,8 @@ components:
88638867
- APPSEC_PERCENTAGE
88648868
- ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE
88658869
- ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE
8870+
- BITS_AI_INVESTIGATIONS_USAGE
8871+
- BITS_AI_INVESTIGATIONS_PERCENTAGE
88668872
- BROWSER_USAGE
88678873
- BROWSER_PERCENTAGE
88688874
- CI_VISIBILITY_ITR_USAGE
@@ -9076,6 +9082,14 @@ components:
90769082
usage by tag(s).
90779083
format: double
90789084
type: number
9085+
bits_ai_investigations_percentage:
9086+
description: The percentage of Bits AI `SRE` investigation usage by tag(s).
9087+
format: double
9088+
type: number
9089+
bits_ai_investigations_usage:
9090+
description: The Bits AI `SRE` investigation usage by tag(s).
9091+
format: double
9092+
type: number
90799093
browser_percentage:
90809094
description: The percentage of synthetic browser test usage by tag(s).
90819095
format: double

src/datadogV1/model/model_hourly_usage_attribution_usage_type.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pub enum HourlyUsageAttributionUsageType {
1515
APPSEC_USAGE,
1616
ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE,
1717
ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE,
18+
BITS_AI_INVESTIGATIONS_USAGE,
1819
BROWSER_USAGE,
1920
CI_PIPELINE_INDEXED_SPANS_USAGE,
2021
CI_TEST_INDEXED_SPANS_USAGE,
@@ -106,6 +107,7 @@ impl ToString for HourlyUsageAttributionUsageType {
106107
Self::ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE => {
107108
String::from("asm_serverless_traced_invocations_percentage")
108109
}
110+
Self::BITS_AI_INVESTIGATIONS_USAGE => String::from("bits_ai_investigations_usage"),
109111
Self::BROWSER_USAGE => String::from("browser_usage"),
110112
Self::CI_PIPELINE_INDEXED_SPANS_USAGE => {
111113
String::from("ci_pipeline_indexed_spans_usage")
@@ -235,6 +237,7 @@ impl<'de> Deserialize<'de> for HourlyUsageAttributionUsageType {
235237
"asm_serverless_traced_invocations_percentage" => {
236238
Self::ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE
237239
}
240+
"bits_ai_investigations_usage" => Self::BITS_AI_INVESTIGATIONS_USAGE,
238241
"browser_usage" => Self::BROWSER_USAGE,
239242
"ci_pipeline_indexed_spans_usage" => Self::CI_PIPELINE_INDEXED_SPANS_USAGE,
240243
"ci_test_indexed_spans_usage" => Self::CI_TEST_INDEXED_SPANS_USAGE,

src/datadogV1/model/model_monthly_usage_attribution_supported_metrics.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ pub enum MonthlyUsageAttributionSupportedMetrics {
2121
APPSEC_PERCENTAGE,
2222
ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE,
2323
ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE,
24+
BITS_AI_INVESTIGATIONS_USAGE,
25+
BITS_AI_INVESTIGATIONS_PERCENTAGE,
2426
BROWSER_USAGE,
2527
BROWSER_PERCENTAGE,
2628
CI_VISIBILITY_ITR_USAGE,
@@ -190,6 +192,10 @@ impl ToString for MonthlyUsageAttributionSupportedMetrics {
190192
Self::ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE => {
191193
String::from("asm_serverless_traced_invocations_percentage")
192194
}
195+
Self::BITS_AI_INVESTIGATIONS_USAGE => String::from("bits_ai_investigations_usage"),
196+
Self::BITS_AI_INVESTIGATIONS_PERCENTAGE => {
197+
String::from("bits_ai_investigations_percentage")
198+
}
193199
Self::BROWSER_USAGE => String::from("browser_usage"),
194200
Self::BROWSER_PERCENTAGE => String::from("browser_percentage"),
195201
Self::CI_VISIBILITY_ITR_USAGE => String::from("ci_visibility_itr_usage"),
@@ -435,6 +441,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionSupportedMetrics {
435441
"asm_serverless_traced_invocations_percentage" => {
436442
Self::ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE
437443
}
444+
"bits_ai_investigations_usage" => Self::BITS_AI_INVESTIGATIONS_USAGE,
445+
"bits_ai_investigations_percentage" => Self::BITS_AI_INVESTIGATIONS_PERCENTAGE,
438446
"browser_usage" => Self::BROWSER_USAGE,
439447
"browser_percentage" => Self::BROWSER_PERCENTAGE,
440448
"ci_visibility_itr_usage" => Self::CI_VISIBILITY_ITR_USAGE,

src/datadogV1/model/model_monthly_usage_attribution_values.rs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ pub struct MonthlyUsageAttributionValues {
5454
/// The Application Security Monitoring Serverless traced invocations usage by tag(s).
5555
#[serde(rename = "asm_serverless_traced_invocations_usage")]
5656
pub asm_serverless_traced_invocations_usage: Option<f64>,
57+
/// The percentage of Bits AI `SRE` investigation usage by tag(s).
58+
#[serde(rename = "bits_ai_investigations_percentage")]
59+
pub bits_ai_investigations_percentage: Option<f64>,
60+
/// The Bits AI `SRE` investigation usage by tag(s).
61+
#[serde(rename = "bits_ai_investigations_usage")]
62+
pub bits_ai_investigations_usage: Option<f64>,
5763
/// The percentage of synthetic browser test usage by tag(s).
5864
#[serde(rename = "browser_percentage")]
5965
pub browser_percentage: Option<f64>,
@@ -504,6 +510,8 @@ impl MonthlyUsageAttributionValues {
504510
appsec_usage: None,
505511
asm_serverless_traced_invocations_percentage: None,
506512
asm_serverless_traced_invocations_usage: None,
513+
bits_ai_investigations_percentage: None,
514+
bits_ai_investigations_usage: None,
507515
browser_percentage: None,
508516
browser_usage: None,
509517
ci_pipeline_indexed_spans_percentage: None,
@@ -721,6 +729,16 @@ impl MonthlyUsageAttributionValues {
721729
self
722730
}
723731

732+
pub fn bits_ai_investigations_percentage(mut self, value: f64) -> Self {
733+
self.bits_ai_investigations_percentage = Some(value);
734+
self
735+
}
736+
737+
pub fn bits_ai_investigations_usage(mut self, value: f64) -> Self {
738+
self.bits_ai_investigations_usage = Some(value);
739+
self
740+
}
741+
724742
pub fn browser_percentage(mut self, value: f64) -> Self {
725743
self.browser_percentage = Some(value);
726744
self
@@ -1477,6 +1495,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
14771495
let mut appsec_usage: Option<f64> = None;
14781496
let mut asm_serverless_traced_invocations_percentage: Option<f64> = None;
14791497
let mut asm_serverless_traced_invocations_usage: Option<f64> = None;
1498+
let mut bits_ai_investigations_percentage: Option<f64> = None;
1499+
let mut bits_ai_investigations_usage: Option<f64> = None;
14801500
let mut browser_percentage: Option<f64> = None;
14811501
let mut browser_usage: Option<f64> = None;
14821502
let mut ci_pipeline_indexed_spans_percentage: Option<f64> = None;
@@ -1724,6 +1744,20 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
17241744
asm_serverless_traced_invocations_usage =
17251745
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
17261746
}
1747+
"bits_ai_investigations_percentage" => {
1748+
if v.is_null() {
1749+
continue;
1750+
}
1751+
bits_ai_investigations_percentage =
1752+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
1753+
}
1754+
"bits_ai_investigations_usage" => {
1755+
if v.is_null() {
1756+
continue;
1757+
}
1758+
bits_ai_investigations_usage =
1759+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
1760+
}
17271761
"browser_percentage" => {
17281762
if v.is_null() {
17291763
continue;
@@ -2740,6 +2774,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
27402774
appsec_usage,
27412775
asm_serverless_traced_invocations_percentage,
27422776
asm_serverless_traced_invocations_usage,
2777+
bits_ai_investigations_percentage,
2778+
bits_ai_investigations_usage,
27432779
browser_percentage,
27442780
browser_usage,
27452781
ci_pipeline_indexed_spans_percentage,

0 commit comments

Comments
 (0)