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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
57 changes: 28 additions & 29 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,39 +30,38 @@ repository = "https://github.com/DataDog/datadog-api-client-rust"
version = "0.27.0"

[dependencies]
async-stream = "0.3.5"
chrono = {version = "0.4.31", features = ["serde"] }
flate2 = "1.0.28"
async-stream = "0.3.6"
chrono = {version = "0.4.44", features = ["serde"] }
flate2 = "1.1.9"
form-data-builder = "1.0.1"
futures-core = "0.3.30"
lazy_static = "1.4.0"
log = "0.4.20"
reqwest = { version = "0.11.24", features = ["multipart"], default-features = false }
reqwest-middleware = "0.2.5"
reqwest-retry = "0.3.0"
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.114"
serde_with = "3.6.1"
url = "2.5.0"
uuid = { version = "1.8.0", features = ["v4", "fast-rng", "macro-diagnostics", "serde"] }
zstd = "0.13.0"
futures-core = "0.3.32"
lazy_static = "1.5.0"
log = "0.4.29"
reqwest = { version = "0.13.2", features = ["multipart", "query"], default-features = false }
reqwest-middleware = { version = "0.5.1", features = ["query", "multipart"] }
reqwest-retry = "0.9.1"
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.149"
serde_with = "3.17.0"
url = "2.5.8"
uuid = { version = "1.21.0", features = ["v4", "fast-rng", "macro-diagnostics", "serde"] }
zstd = "0.13.3"

[build-dependencies]
rustc_version = "0.4.0"
rustc_version = "0.4.1"

[dev-dependencies]
chrono = "0.4.31"
convert_case = "0.6.0"
cucumber = "0.20.2"
env_logger = "0.10.0"
futures = "0.3.28"
futures-util = "0.3.30"
minijinja = "1.0.10"
regex = "1.9.5"
rvcr = { git = "https://github.com/nkzou/rvcr.git", rev = "cb6911dcd05300a95647ed915b94645679fd80eb" }
sha256 = "1.4.0"
tokio = { version = "1.10", features = ["macros", "rt-multi-thread", "time"] }
urlencoding = "2.1.3"
chrono = "0.4.44"
convert_case = "0.11.0"
cucumber = "0.22.1"
env_logger = "0.11.9"
futures = "0.3.32"
futures-util = "0.3.32"
minijinja = "2.16.0"
regex = "1.12.3"
reqwest-vcr = "0.4.0"
sha256 = "1.6.0"
tokio = { version = "1.49.0", features = ["macros", "rt-multi-thread", "time"] }
vcr-cassette = "2.0.1"

[[test]]
Expand All @@ -80,4 +79,4 @@ cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
[features]
default = ["native-tls"]
native-tls = ["reqwest/native-tls"]
rustls-tls = ["reqwest/rustls-tls-webpki-roots"]
rustls-tls = ["reqwest/rustls"]
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
{
"request": {
"body": "",
"headers": {
"Accept": [
"application/json"
]
},
"headers": {},
"method": "get",
"uri": "https://api.datadoghq.com/api/v1/validate"
},
Expand All @@ -30,4 +26,4 @@
}
],
"recorded_with": "VCR 6.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
{
"request": {
"body": "",
"headers": {
"Accept": [
"application/json"
]
},
"headers": {},
"method": "get",
"uri": "https://api.datadoghq.com/api/v1/validate"
},
Expand All @@ -30,4 +26,4 @@
}
],
"recorded_with": "VCR 6.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@
"string": "{\"account_id\":\"171234183000\",\"account_specific_namespace_rules\":{\"auto_scaling\":false},\"cspm_resource_collection_enabled\":true,\"excluded_regions\":[\"us-east-1\",\"us-west-2\"],\"extended_resource_collection_enabled\":true,\"filter_tags\":[\"$KEY:$VALUE\"],\"host_tags\":[\"$KEY:$VALUE\"],\"metrics_collection_enabled\":false,\"role_name\":\"DatadogAWSIntegrationRole\"}",
"encoding": null
},
"headers": {
"Accept": [
"application/json"
],
"Content-Type": [
"application/json"
]
},
"headers": {},
"method": "post",
"uri": "https://api.datadoghq.com/api/v1/integration/aws"
},
Expand All @@ -40,14 +33,7 @@
"string": "{\"account_id\":\"171234183000\",\"role_name\":\"DatadogAWSIntegrationRole\"}",
"encoding": null
},
"headers": {
"Accept": [
"application/json"
],
"Content-Type": [
"application/json"
]
},
"headers": {},
"method": "delete",
"uri": "https://api.datadoghq.com/api/v1/integration/aws"
},
Expand All @@ -70,4 +56,4 @@
}
],
"recorded_with": "VCR 6.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@
"string": "{\"account_id\":\"171234183200\",\"account_specific_namespace_rules\":{\"auto_scaling\":false},\"cspm_resource_collection_enabled\":true,\"excluded_regions\":[\"us-east-1\",\"us-west-2\"],\"extended_resource_collection_enabled\":true,\"filter_tags\":[\"$KEY:$VALUE\"],\"host_tags\":[\"$KEY:$VALUE\"],\"metrics_collection_enabled\":false,\"role_name\":\"DatadogAWSIntegrationRole\"}",
"encoding": null
},
"headers": {
"Accept": [
"application/json"
],
"Content-Type": [
"application/json"
]
},
"headers": {},
"method": "post",
"uri": "https://api.datadoghq.com/api/v1/integration/aws"
},
Expand All @@ -40,14 +33,7 @@
"string": "{\"account_id\":\"171234183200\",\"role_name\":\"DatadogAWSIntegrationRole\"}",
"encoding": null
},
"headers": {
"Accept": [
"application/json"
],
"Content-Type": [
"application/json"
]
},
"headers": {},
"method": "delete",
"uri": "https://api.datadoghq.com/api/v1/integration/aws"
},
Expand All @@ -74,14 +60,7 @@
"string": "{\"account_id\":\"171234183200\",\"role_name\":\"DatadogAWSIntegrationRole\"}",
"encoding": null
},
"headers": {
"Accept": [
"application/json"
],
"Content-Type": [
"application/json"
]
},
"headers": {},
"method": "delete",
"uri": "https://api.datadoghq.com/api/v1/integration/aws"
},
Expand All @@ -104,4 +83,4 @@
}
],
"recorded_with": "VCR 6.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@
"string": "{\"account_id\":\"171234183400\",\"account_specific_namespace_rules\":{\"auto_scaling\":false},\"cspm_resource_collection_enabled\":true,\"excluded_regions\":[\"us-east-1\",\"us-west-2\"],\"extended_resource_collection_enabled\":true,\"filter_tags\":[\"$KEY:$VALUE\"],\"host_tags\":[\"$KEY:$VALUE\"],\"metrics_collection_enabled\":false,\"role_name\":\"DatadogAWSIntegrationRole\"}",
"encoding": null
},
"headers": {
"Accept": [
"application/json"
],
"Content-Type": [
"application/json"
]
},
"headers": {},
"method": "post",
"uri": "https://api.datadoghq.com/api/v1/integration/aws"
},
Expand All @@ -40,14 +33,7 @@
"string": "{\"account_id\":\"171234183400\",\"account_specific_namespace_rules\":{\"auto_scaling\":false},\"cspm_resource_collection_enabled\":false,\"excluded_regions\":[\"us-east-1\",\"us-west-2\"],\"extended_resource_collection_enabled\":true,\"filter_tags\":[\"$KEY:$VALUE\"],\"host_tags\":[\"$KEY:$VALUE\"],\"metrics_collection_enabled\":true,\"role_name\":\"DatadogAWSIntegrationRole\"}",
"encoding": null
},
"headers": {
"Accept": [
"application/json"
],
"Content-Type": [
"application/json"
]
},
"headers": {},
"method": "put",
"uri": "https://api.datadoghq.com/api/v1/integration/aws?account_id=171234183400&role_name=DatadogAWSIntegrationRole"
},
Expand All @@ -74,14 +60,7 @@
"string": "{\"account_id\":\"171234183400\",\"role_name\":\"DatadogAWSIntegrationRole\"}",
"encoding": null
},
"headers": {
"Accept": [
"application/json"
],
"Content-Type": [
"application/json"
]
},
"headers": {},
"method": "delete",
"uri": "https://api.datadoghq.com/api/v1/integration/aws"
},
Expand All @@ -104,4 +83,4 @@
}
],
"recorded_with": "VCR 6.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@
"string": "{\"app_service_plan_filters\":\"key:value,filter:example\",\"automute\":true,\"client_id\":\"17219332-0000-0000-0000-172193325500\",\"client_secret\":\"TestingRh2nx664kUy5dIApvM54T4AtO\",\"container_app_filters\":\"key:value,filter:example\",\"cspm_enabled\":true,\"custom_metrics_enabled\":true,\"errors\":[\"*\"],\"host_filters\":\"key:value,filter:example\",\"new_client_id\":\"17219332-0000-0000-0000-172193325500\",\"new_tenant_name\":\"17219332-0000-0000-0000-172193325500\",\"resource_collection_enabled\":true,\"tenant_name\":\"17219332-0000-0000-0000-172193325500\"}",
"encoding": null
},
"headers": {
"Accept": [
"application/json"
],
"Content-Type": [
"application/json"
]
},
"headers": {},
"method": "post",
"uri": "https://api.datadoghq.com/api/v1/integration/azure"
},
Expand All @@ -40,14 +33,7 @@
"string": "{\"client_id\":\"17219332-0000-0000-0000-172193325500\",\"tenant_name\":\"17219332-0000-0000-0000-172193325500\"}",
"encoding": null
},
"headers": {
"Accept": [
"application/json"
],
"Content-Type": [
"application/json"
]
},
"headers": {},
"method": "delete",
"uri": "https://api.datadoghq.com/api/v1/integration/azure"
},
Expand All @@ -70,4 +56,4 @@
}
],
"recorded_with": "VCR 6.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@
"string": "{\"app_service_plan_filters\":\"key:value,filter:example\",\"automute\":true,\"client_id\":\"17344717-0000-0000-0000-173447178000\",\"client_secret\":\"TestingRh2nx664kUy5dIApvM54T4AtO\",\"container_app_filters\":\"key:value,filter:example\",\"cspm_enabled\":true,\"custom_metrics_enabled\":true,\"errors\":[\"*\"],\"host_filters\":\"key:value,filter:example\",\"metrics_enabled\":true,\"metrics_enabled_default\":true,\"new_client_id\":\"17344717-0000-0000-0000-173447178000\",\"new_tenant_name\":\"17344717-0000-0000-0000-173447178000\",\"resource_collection_enabled\":true,\"resource_provider_configs\":[{\"metrics_enabled\":false,\"namespace\":\"Microsoft.Compute\"},{\"metrics_enabled\":false,\"namespace\":\"Microsoft.Web\"}],\"tenant_name\":\"17344717-0000-0000-0000-173447178000\",\"usage_metrics_enabled\":true}",
"encoding": null
},
"headers": {
"Accept": [
"application/json"
],
"Content-Type": [
"application/json"
]
},
"headers": {},
"method": "post",
"uri": "https://api.datadoghq.com/api/v1/integration/azure"
},
Expand All @@ -40,14 +33,7 @@
"string": "{\"client_id\":\"17344717-0000-0000-0000-173447178000\",\"tenant_name\":\"17344717-0000-0000-0000-173447178000\"}",
"encoding": null
},
"headers": {
"Accept": [
"application/json"
],
"Content-Type": [
"application/json"
]
},
"headers": {},
"method": "delete",
"uri": "https://api.datadoghq.com/api/v1/integration/azure"
},
Expand All @@ -74,14 +60,7 @@
"string": "{\"client_id\":\"17344717-0000-0000-0000-173447178000\",\"tenant_name\":\"17344717-0000-0000-0000-173447178000\"}",
"encoding": null
},
"headers": {
"Accept": [
"application/json"
],
"Content-Type": [
"application/json"
]
},
"headers": {},
"method": "delete",
"uri": "https://api.datadoghq.com/api/v1/integration/azure"
},
Expand All @@ -104,4 +83,4 @@
}
],
"recorded_with": "VCR 6.0.0"
}
}
Loading
Loading