Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update spans.yaml #455

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-01-09 22:06:04.168404",
"spec_repo_commit": "8d40e082"
"regenerated": "2025-01-10 21:28:31.672569",
"spec_repo_commit": "cf3ae49b"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-01-09 22:06:04.183707",
"spec_repo_commit": "8d40e082"
"regenerated": "2025-01-10 21:28:31.688174",
"spec_repo_commit": "cf3ae49b"
}
}
}
3 changes: 2 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45687,7 +45687,8 @@ paths:
required: false
schema:
type: string
- description: Maximum number of spans in the response.
- description: Maximum number of spans in the response. Defaults to 10 and allows
up to 5000.
example: 25
in: query
name: page[limit]
Expand Down
1 change: 1 addition & 0 deletions examples/v1_aws-integration_CreateAWSAccount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ async fn main() {
.host_tags(vec!["$KEY:$VALUE".to_string()])
.metrics_collection_enabled(false)
.role_name("DatadogAWSIntegrationRole".to_string());

let configuration = datadog::Configuration::new();
let api = AWSIntegrationAPI::with_config(configuration);
let resp = api.create_aws_account(body).await;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ async fn main() {
.create_event_bus(true)
.event_generator_name("app-alerts".to_string())
.region("us-east-1".to_string());

let configuration = datadog::Configuration::new();
let api = AWSIntegrationAPI::with_config(configuration);
let resp = api.create_aws_event_bridge_source(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_aws-integration_CreateAWSTagFilter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ async fn main() {
.account_id("123456789012".to_string())
.namespace(AWSNamespace::ELB)
.tag_filter_str("prod*".to_string());

let configuration = datadog::Configuration::new();
let api = AWSIntegrationAPI::with_config(configuration);
let resp = api.create_aws_tag_filter(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_aws-integration_CreateNewAWSExternalID.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ async fn main() {
.metrics_collection_enabled(false)
.resource_collection_enabled(true)
.role_name("DatadogAWSIntegrationRole".to_string());

let configuration = datadog::Configuration::new();
let api = AWSIntegrationAPI::with_config(configuration);
let resp = api.create_new_aws_external_id(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_aws-integration_DeleteAWSAccount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ async fn main() {
let body = AWSAccountDeleteRequest::new()
.account_id("163662907100".to_string())
.role_name("DatadogAWSIntegrationRole".to_string());

let configuration = datadog::Configuration::new();
let api = AWSIntegrationAPI::with_config(configuration);
let resp = api.delete_aws_account(body).await;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ async fn main() {
.account_id("123456789012".to_string())
.event_generator_name("app-alerts-zyxw3210".to_string())
.region("us-east-1".to_string());

let configuration = datadog::Configuration::new();
let api = AWSIntegrationAPI::with_config(configuration);
let resp = api.delete_aws_event_bridge_source(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_aws-integration_DeleteAWSTagFilter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ async fn main() {
let body = AWSTagFilterDeleteRequest::new()
.account_id("FAKEAC0FAKEAC2FAKEAC".to_string())
.namespace(AWSNamespace::ELB);

let configuration = datadog::Configuration::new();
let api = AWSIntegrationAPI::with_config(configuration);
let resp = api.delete_aws_tag_filter(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_aws-integration_UpdateAWSAccount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ async fn main() {
.host_tags(vec!["$KEY:$VALUE".to_string()])
.metrics_collection_enabled(true)
.role_name("DatadogAWSIntegrationRole".to_string());

let configuration = datadog::Configuration::new();
let api = AWSIntegrationAPI::with_config(configuration);
let resp = api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ async fn main() {
"1234567".to_string(),
"arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest".to_string(),
);

let configuration = datadog::Configuration::new();
let api = AWSLogsIntegrationAPI::with_config(configuration);
let resp = api.check_aws_logs_lambda_async(body).await;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ async fn main() {
"lambda".to_string(),
],
);

let configuration = datadog::Configuration::new();
let api = AWSLogsIntegrationAPI::with_config(configuration);
let resp = api.check_aws_logs_services_async(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_aws-logs-integration_CreateAWSLambdaARN.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ async fn main() {
"1234567".to_string(),
"arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest".to_string(),
);

let configuration = datadog::Configuration::new();
let api = AWSLogsIntegrationAPI::with_config(configuration);
let resp = api.create_aws_lambda_arn(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_aws-logs-integration_DeleteAWSLambdaARN.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ async fn main() {
"1234567".to_string(),
"arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest".to_string(),
);

let configuration = datadog::Configuration::new();
let api = AWSLogsIntegrationAPI::with_config(configuration);
let resp = api.delete_aws_lambda_arn(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_aws-logs-integration_EnableAWSLogServices.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ async fn main() {
"lambda".to_string(),
],
);

let configuration = datadog::Configuration::new();
let api = AWSLogsIntegrationAPI::with_config(configuration);
let resp = api.enable_aws_log_services(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_azure-integration_CreateAzureIntegration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ async fn main() {
.new_tenant_name("".to_string())
.resource_collection_enabled(true)
.tenant_name("".to_string());

let configuration = datadog::Configuration::new();
let api = AzureIntegrationAPI::with_config(configuration);
let resp = api.create_azure_integration(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_azure-integration_DeleteAzureIntegration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ async fn main() {
let body = AzureAccount::new()
.client_id("".to_string())
.tenant_name("".to_string());

let configuration = datadog::Configuration::new();
let api = AzureIntegrationAPI::with_config(configuration);
let resp = api.delete_azure_integration(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_azure-integration_UpdateAzureHostFilters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ async fn main() {
.namespace("Microsoft.Compute".to_string())])
.tenant_name("testc44-1234-5678-9101-cc00736ftest".to_string())
.usage_metrics_enabled(true);

let configuration = datadog::Configuration::new();
let api = AzureIntegrationAPI::with_config(configuration);
let resp = api.update_azure_host_filters(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_azure-integration_UpdateAzureIntegration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ async fn main() {
.new_tenant_name("".to_string())
.resource_collection_enabled(true)
.tenant_name("".to_string());

let configuration = datadog::Configuration::new();
let api = AzureIntegrationAPI::with_config(configuration);
let resp = api.update_azure_integration(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_dashboard-lists_CreateDashboardList.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use datadog_api_client::datadogV1::model::DashboardList;
#[tokio::main]
async fn main() {
let body = DashboardList::new("Example-Dashboard-List".to_string());

let configuration = datadog::Configuration::new();
let api = DashboardListsAPI::with_config(configuration);
let resp = api.create_dashboard_list(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_dashboard-lists_DeleteDashboardList.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use datadog_api_client::datadogV1::api_dashboard_lists::DashboardListsAPI;
async fn main() {
// there is a valid "dashboard_list" in the system
let dashboard_list_id: i64 = std::env::var("DASHBOARD_LIST_ID").unwrap().parse().unwrap();

let configuration = datadog::Configuration::new();
let api = DashboardListsAPI::with_config(configuration);
let resp = api.delete_dashboard_list(dashboard_list_id.clone()).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_dashboard-lists_GetDashboardList.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use datadog_api_client::datadogV1::api_dashboard_lists::DashboardListsAPI;
async fn main() {
// there is a valid "dashboard_list" in the system
let dashboard_list_id: i64 = std::env::var("DASHBOARD_LIST_ID").unwrap().parse().unwrap();

let configuration = datadog::Configuration::new();
let api = DashboardListsAPI::with_config(configuration);
let resp = api.get_dashboard_list(dashboard_list_id.clone()).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_dashboard-lists_UpdateDashboardList.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ async fn main() {
// there is a valid "dashboard_list" in the system
let dashboard_list_id: i64 = std::env::var("DASHBOARD_LIST_ID").unwrap().parse().unwrap();
let body = DashboardList::new("updated Example-Dashboard-List".to_string());

let configuration = datadog::Configuration::new();
let api = DashboardListsAPI::with_config(configuration);
let resp = api
Expand Down
1 change: 1 addition & 0 deletions examples/v1_dashboards_CreateDashboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ async fn main() {
)),
))],
);

let configuration = datadog::Configuration::new();
let api = DashboardsAPI::with_config(configuration);
let resp = api.create_dashboard(body).await;
Expand Down
51 changes: 2 additions & 49 deletions examples/v1_dashboards_CreateDashboard_1024858348.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,55 +20,8 @@ use datadog_api_client::datadogV1::model::WidgetLayout;

#[tokio::main]
async fn main() {
let body =
Dashboard::new(
DashboardLayoutType::ORDERED,
"Example-Dashboard".to_string(),
vec![
Widget::new(
WidgetDefinition::TreeMapWidgetDefinition(
Box::new(
TreeMapWidgetDefinition::new(
vec![
TreeMapWidgetRequest::new()
.formulas(
vec![
WidgetFormula::new("hour_before(query1)".to_string()),
WidgetFormula::new("query1".to_string())
],
)
.queries(
vec![
FormulaAndFunctionQueryDefinition
::FormulaAndFunctionEventQueryDefinition(
Box::new(
FormulaAndFunctionEventQueryDefinition::new(
FormulaAndFunctionEventQueryDefinitionCompute::new(
FormulaAndFunctionEventAggregation::COUNT,
),
FormulaAndFunctionEventsDataSource::LOGS,
"query1".to_string(),
)
.group_by(vec![])
.indexes(vec!["*".to_string()])
.search(
FormulaAndFunctionEventQueryDefinitionSearch::new(
"".to_string(),
),
),
),
)
],
)
.response_format(FormulaAndFunctionResponseFormat::SCALAR)
],
TreeMapWidgetDefinitionType::TREEMAP,
).title("".to_string()),
),
),
).layout(WidgetLayout::new(4, 4, 0, 0))
],
);
let body = Dashboard::new(DashboardLayoutType::ORDERED, "Example-Dashboard".to_string(), vec![Widget::new(WidgetDefinition::TreeMapWidgetDefinition(Box::new(TreeMapWidgetDefinition::new(vec![TreeMapWidgetRequest::new().formulas(vec![WidgetFormula::new("hour_before(query1)".to_string(), ),WidgetFormula::new("query1".to_string(), ),]).queries(vec![FormulaAndFunctionQueryDefinition::FormulaAndFunctionEventQueryDefinition(Box::new(FormulaAndFunctionEventQueryDefinition::new(FormulaAndFunctionEventQueryDefinitionCompute::new(FormulaAndFunctionEventAggregation::COUNT, ), FormulaAndFunctionEventsDataSource::LOGS, "query1".to_string(), ).group_by(vec![]).indexes(vec!["*".to_string(),]).search(FormulaAndFunctionEventQueryDefinitionSearch::new("".to_string(), )))),]).response_format(FormulaAndFunctionResponseFormat::SCALAR),], TreeMapWidgetDefinitionType::TREEMAP, ).title("".to_string()))), ).layout(WidgetLayout::new(4, 4, 0, 0, )),], );

let configuration = datadog::Configuration::new();
let api = DashboardsAPI::with_config(configuration);
let resp = api.create_dashboard(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_dashboards_CreateDashboard_1039800684.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ async fn main() {
)),
))],
);

let configuration = datadog::Configuration::new();
let api = DashboardsAPI::with_config(configuration);
let resp = api.create_dashboard(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_dashboards_CreateDashboard_109450134.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ async fn main() {
.description(Some("".to_string()))
.notify_list(Some(vec![]))
.template_variables(Some(vec![]));

let configuration = datadog::Configuration::new();
let api = DashboardsAPI::with_config(configuration);
let resp = api.create_dashboard(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_dashboards_CreateDashboard_1094917386.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ async fn main() {
.description(Some("".to_string()))
.notify_list(Some(vec![]))
.template_variables(Some(vec![]));

let configuration = datadog::Configuration::new();
let api = DashboardsAPI::with_config(configuration);
let resp = api.create_dashboard(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_dashboards_CreateDashboard_1177423752.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ async fn main() {
.description(None)
.notify_list(Some(vec![]))
.template_variables(Some(vec![]));

let configuration = datadog::Configuration::new();
let api = DashboardsAPI::with_config(configuration);
let resp = api.create_dashboard(body).await;
Expand Down
1 change: 1 addition & 0 deletions examples/v1_dashboards_CreateDashboard_1200099236.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ async fn main() {
.description(None)
.notify_list(Some(vec![]))
.template_variables(Some(vec![]));

let configuration = datadog::Configuration::new();
let api = DashboardsAPI::with_config(configuration);
let resp = api.create_dashboard(body).await;
Expand Down
Loading
Loading