Skip to content

Commit 0773181

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add llm_spans and deprecate llm_observability for Hourly Usage Attribution and Monthly Usage Attribution (#1099)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent ec55cad commit 0773181

File tree

5 files changed

+68
-2
lines changed

5 files changed

+68
-2
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4315,6 +4315,7 @@ components:
43154315
- invocations_usage
43164316
- lambda_traced_invocations_usage
43174317
- llm_observability_usage
4318+
- llm_spans_usage
43184319
- logs_indexed_15day_usage
43194320
- logs_indexed_180day_usage
43204321
- logs_indexed_1day_usage
@@ -4396,6 +4397,7 @@ components:
43964397
- INVOCATIONS_USAGE
43974398
- LAMBDA_TRACED_INVOCATIONS_USAGE
43984399
- LLM_OBSERVABILITY_USAGE
4400+
- LLM_SPANS_USAGE
43994401
- LOGS_INDEXED_15DAY_USAGE
44004402
- LOGS_INDEXED_180DAY_USAGE
44014403
- LOGS_INDEXED_1DAY_USAGE
@@ -8752,6 +8754,8 @@ components:
87528754
- lambda_traced_invocations_percentage
87538755
- llm_observability_usage
87548756
- llm_observability_percentage
8757+
- llm_spans_usage
8758+
- llm_spans_percentage
87558759
- mobile_app_testing_percentage
87568760
- mobile_app_testing_usage
87578761
- ndm_netflow_usage
@@ -8909,6 +8913,8 @@ components:
89098913
- LAMBDA_TRACED_INVOCATIONS_PERCENTAGE
89108914
- LLM_OBSERVABILITY_USAGE
89118915
- LLM_OBSERVABILITY_PERCENTAGE
8916+
- LLM_SPANS_USAGE
8917+
- LLM_SPANS_PERCENTAGE
89128918
- MOBILE_APP_TESTING_USAGE
89138919
- MOBILE_APP_TESTING_PERCENTAGE
89148920
- NDM_NETFLOW_USAGE
@@ -9329,6 +9335,14 @@ components:
93299335
description: The LLM Observability usage by tag(s).
93309336
format: double
93319337
type: number
9338+
llm_spans_percentage:
9339+
description: The percentage of LLM Spans usage by tag(s).
9340+
format: double
9341+
type: number
9342+
llm_spans_usage:
9343+
description: The LLM Spans usage by tag(s).
9344+
format: double
9345+
type: number
93329346
logs_indexed_15day_percentage:
93339347
description: The percentage of Indexed Logs (15-day Retention) usage by
93349348
tag(s).
@@ -36599,7 +36613,10 @@ paths:
3659936613
code example:\n\n```\nresponse := GetHourlyUsageAttribution(start_month)\ncursor
3660036614
:= response.metadata.pagination.next_record_id\nWHILE cursor != null BEGIN\n
3660136615
\ sleep(5 seconds) # Avoid running into rate limit\n response := GetHourlyUsageAttribution(start_month,
36602-
next_record_id=cursor)\n cursor := response.metadata.pagination.next_record_id\nEND\n```"
36616+
next_record_id=cursor)\n cursor := response.metadata.pagination.next_record_id\nEND\n```\nThe
36617+
following values have been **deprecated**:\n `estimated_indexed_spans_usage`,
36618+
`estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`, `estimated_ingested_spans_percentage`,
36619+
`llm_observability_usage`, `llm_observability_percentage`."
3660336620
operationId: GetHourlyUsageAttribution
3660436621
parameters:
3660536622
- description: 'Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]`
@@ -37178,7 +37195,7 @@ paths:
3717837195
The following values have been **deprecated**:
3717937196

3718037197
`estimated_indexed_spans_usage`, `estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`,
37181-
`estimated_ingested_spans_percentage`.'
37198+
`estimated_ingested_spans_percentage`, `llm_observability_usage`, `llm_observability_percentage`.'
3718237199
in: query
3718337200
name: fields
3718437201
required: true

src/datadogV1/api/api_usage_metering.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,6 +1296,8 @@ impl UsageMeteringAPI {
12961296
/// cursor := response.metadata.pagination.next_record_id
12971297
/// END
12981298
/// ```
1299+
/// The following values have been **deprecated**:
1300+
/// `estimated_indexed_spans_usage`, `estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`, `estimated_ingested_spans_percentage`, `llm_observability_usage`, `llm_observability_percentage`.
12991301
pub async fn get_hourly_usage_attribution(
13001302
&self,
13011303
start_hr: chrono::DateTime<chrono::Utc>,
@@ -1337,6 +1339,8 @@ impl UsageMeteringAPI {
13371339
/// cursor := response.metadata.pagination.next_record_id
13381340
/// END
13391341
/// ```
1342+
/// The following values have been **deprecated**:
1343+
/// `estimated_indexed_spans_usage`, `estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`, `estimated_ingested_spans_percentage`, `llm_observability_usage`, `llm_observability_percentage`.
13401344
pub async fn get_hourly_usage_attribution_with_http_info(
13411345
&self,
13421346
start_hr: chrono::DateTime<chrono::Utc>,

src/datadogV1/model/model_hourly_usage_attribution_usage_type.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ pub enum HourlyUsageAttributionUsageType {
4949
INVOCATIONS_USAGE,
5050
LAMBDA_TRACED_INVOCATIONS_USAGE,
5151
LLM_OBSERVABILITY_USAGE,
52+
LLM_SPANS_USAGE,
5253
LOGS_INDEXED_15DAY_USAGE,
5354
LOGS_INDEXED_180DAY_USAGE,
5455
LOGS_INDEXED_1DAY_USAGE,
@@ -146,6 +147,7 @@ impl ToString for HourlyUsageAttributionUsageType {
146147
String::from("lambda_traced_invocations_usage")
147148
}
148149
Self::LLM_OBSERVABILITY_USAGE => String::from("llm_observability_usage"),
150+
Self::LLM_SPANS_USAGE => String::from("llm_spans_usage"),
149151
Self::LOGS_INDEXED_15DAY_USAGE => String::from("logs_indexed_15day_usage"),
150152
Self::LOGS_INDEXED_180DAY_USAGE => String::from("logs_indexed_180day_usage"),
151153
Self::LOGS_INDEXED_1DAY_USAGE => String::from("logs_indexed_1day_usage"),
@@ -267,6 +269,7 @@ impl<'de> Deserialize<'de> for HourlyUsageAttributionUsageType {
267269
"invocations_usage" => Self::INVOCATIONS_USAGE,
268270
"lambda_traced_invocations_usage" => Self::LAMBDA_TRACED_INVOCATIONS_USAGE,
269271
"llm_observability_usage" => Self::LLM_OBSERVABILITY_USAGE,
272+
"llm_spans_usage" => Self::LLM_SPANS_USAGE,
270273
"logs_indexed_15day_usage" => Self::LOGS_INDEXED_15DAY_USAGE,
271274
"logs_indexed_180day_usage" => Self::LOGS_INDEXED_180DAY_USAGE,
272275
"logs_indexed_1day_usage" => Self::LOGS_INDEXED_1DAY_USAGE,

src/datadogV1/model/model_monthly_usage_attribution_supported_metrics.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ pub enum MonthlyUsageAttributionSupportedMetrics {
7575
LAMBDA_TRACED_INVOCATIONS_PERCENTAGE,
7676
LLM_OBSERVABILITY_USAGE,
7777
LLM_OBSERVABILITY_PERCENTAGE,
78+
LLM_SPANS_USAGE,
79+
LLM_SPANS_PERCENTAGE,
7880
MOBILE_APP_TESTING_USAGE,
7981
MOBILE_APP_TESTING_PERCENTAGE,
8082
NDM_NETFLOW_USAGE,
@@ -262,6 +264,8 @@ impl ToString for MonthlyUsageAttributionSupportedMetrics {
262264
}
263265
Self::LLM_OBSERVABILITY_USAGE => String::from("llm_observability_usage"),
264266
Self::LLM_OBSERVABILITY_PERCENTAGE => String::from("llm_observability_percentage"),
267+
Self::LLM_SPANS_USAGE => String::from("llm_spans_usage"),
268+
Self::LLM_SPANS_PERCENTAGE => String::from("llm_spans_percentage"),
265269
Self::MOBILE_APP_TESTING_USAGE => String::from("mobile_app_testing_percentage"),
266270
Self::MOBILE_APP_TESTING_PERCENTAGE => String::from("mobile_app_testing_usage"),
267271
Self::NDM_NETFLOW_USAGE => String::from("ndm_netflow_usage"),
@@ -485,6 +489,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionSupportedMetrics {
485489
"lambda_traced_invocations_percentage" => Self::LAMBDA_TRACED_INVOCATIONS_PERCENTAGE,
486490
"llm_observability_usage" => Self::LLM_OBSERVABILITY_USAGE,
487491
"llm_observability_percentage" => Self::LLM_OBSERVABILITY_PERCENTAGE,
492+
"llm_spans_usage" => Self::LLM_SPANS_USAGE,
493+
"llm_spans_percentage" => Self::LLM_SPANS_PERCENTAGE,
488494
"mobile_app_testing_percentage" => Self::MOBILE_APP_TESTING_USAGE,
489495
"mobile_app_testing_usage" => Self::MOBILE_APP_TESTING_PERCENTAGE,
490496
"ndm_netflow_usage" => Self::NDM_NETFLOW_USAGE,

src/datadogV1/model/model_monthly_usage_attribution_values.rs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,12 @@ pub struct MonthlyUsageAttributionValues {
246246
/// The LLM Observability usage by tag(s).
247247
#[serde(rename = "llm_observability_usage")]
248248
pub llm_observability_usage: Option<f64>,
249+
/// The percentage of LLM Spans usage by tag(s).
250+
#[serde(rename = "llm_spans_percentage")]
251+
pub llm_spans_percentage: Option<f64>,
252+
/// The LLM Spans usage by tag(s).
253+
#[serde(rename = "llm_spans_usage")]
254+
pub llm_spans_usage: Option<f64>,
249255
/// The percentage of Indexed Logs (15-day Retention) usage by tag(s).
250256
#[serde(rename = "logs_indexed_15day_percentage")]
251257
pub logs_indexed_15day_percentage: Option<f64>,
@@ -556,6 +562,8 @@ impl MonthlyUsageAttributionValues {
556562
lambda_traced_invocations_usage: None,
557563
llm_observability_percentage: None,
558564
llm_observability_usage: None,
565+
llm_spans_percentage: None,
566+
llm_spans_usage: None,
559567
logs_indexed_15day_percentage: None,
560568
logs_indexed_15day_usage: None,
561569
logs_indexed_180day_percentage: None,
@@ -1025,6 +1033,16 @@ impl MonthlyUsageAttributionValues {
10251033
self
10261034
}
10271035

1036+
pub fn llm_spans_percentage(mut self, value: f64) -> Self {
1037+
self.llm_spans_percentage = Some(value);
1038+
self
1039+
}
1040+
1041+
pub fn llm_spans_usage(mut self, value: f64) -> Self {
1042+
self.llm_spans_usage = Some(value);
1043+
self
1044+
}
1045+
10281046
pub fn logs_indexed_15day_percentage(mut self, value: f64) -> Self {
10291047
self.logs_indexed_15day_percentage = Some(value);
10301048
self
@@ -1505,6 +1523,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
15051523
let mut lambda_traced_invocations_usage: Option<f64> = None;
15061524
let mut llm_observability_percentage: Option<f64> = None;
15071525
let mut llm_observability_usage: Option<f64> = None;
1526+
let mut llm_spans_percentage: Option<f64> = None;
1527+
let mut llm_spans_usage: Option<f64> = None;
15081528
let mut logs_indexed_15day_percentage: Option<f64> = None;
15091529
let mut logs_indexed_15day_usage: Option<f64> = None;
15101530
let mut logs_indexed_180day_percentage: Option<f64> = None;
@@ -2132,6 +2152,20 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
21322152
llm_observability_usage =
21332153
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
21342154
}
2155+
"llm_spans_percentage" => {
2156+
if v.is_null() {
2157+
continue;
2158+
}
2159+
llm_spans_percentage =
2160+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
2161+
}
2162+
"llm_spans_usage" => {
2163+
if v.is_null() {
2164+
continue;
2165+
}
2166+
llm_spans_usage =
2167+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
2168+
}
21352169
"logs_indexed_15day_percentage" => {
21362170
if v.is_null() {
21372171
continue;
@@ -2736,6 +2770,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
27362770
lambda_traced_invocations_usage,
27372771
llm_observability_percentage,
27382772
llm_observability_usage,
2773+
llm_spans_percentage,
2774+
llm_spans_usage,
27392775
logs_indexed_15day_percentage,
27402776
logs_indexed_15day_usage,
27412777
logs_indexed_180day_percentage,

0 commit comments

Comments
 (0)