arcade-mcp/toolkits/datadog_api/arcade_datadog_api/wrapper_tools/CreateLogsArchive.json
jottakka f05560bbf4
[MOAR][DATADOG] Adding DataDog starter toolkit (+590) (#633)
Co-authored-by: Francisco Liberal <francisco@arcade.dev>
2025-10-20 15:49:48 -03:00

276 lines
23 KiB
JSON

{
"name": "CreateLogsArchive",
"fully_qualified_name": "DatadogApi.CreateLogsArchive@0.1.0",
"description": "Create an archive of logs in your organization.\n\nUse this tool to create a new archive for logs within your organization through Datadog. This is useful for organizing and storing logs for compliance or analysis purposes.",
"toolkit": {
"name": "ArcadeDatadogApi",
"description": null,
"version": "0.1.0"
},
"input": {
"parameters": [
{
"name": "archive_definition",
"required": true,
"description": "The JSON definition of the new logs archive, including attributes like name, destination, query, and rehydration options.",
"value_schema": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"data": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"attributes": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"destination": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "An archive's destination."
},
"include_tags": {
"val_type": "boolean",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "To store the tags in the archive, set the value \"true\".\nIf it is set to \"false\", the tags will be deleted when the logs are sent to the archive."
},
"name": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The archive name."
},
"query": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The archive query/filter. Logs matching this query are included in the archive."
},
"rehydration_max_scan_size_in_gb": {
"val_type": "integer",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "Maximum scan size for rehydration from this archive."
},
"rehydration_tags": {
"val_type": "array",
"inner_val_type": "string",
"enum": null,
"properties": null,
"inner_properties": null,
"description": "An array of tags to add to rehydrated logs from an archive."
}
},
"inner_properties": null,
"description": "The attributes associated with the archive."
},
"type": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The type of the resource. The value should always be archives."
}
},
"inner_properties": null,
"description": "The definition of an archive."
}
},
"inner_properties": null,
"description": "The definition of the new archive."
},
"inferrable": true,
"http_endpoint_parameter_name": "requestBody"
}
]
},
"output": {
"description": "Response from the API endpoint 'CreateLogsArchive'.",
"available_modes": [
"value",
"error",
"null"
],
"value_schema": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": null
}
},
"requirements": {
"authorization": null,
"secrets": [
{
"key": "DATADOG_API_KEY"
},
{
"key": "DATADOG_APPLICATION_KEY"
},
{
"key": "DATADOG_BASE_URL"
}
],
"metadata": null
},
"deprecation_message": null,
"metadata": {
"object_type": "api_wrapper_tool",
"version": "1.1.0",
"description": "Tools that enable LLMs to interact directly with the Datadog API."
},
"http_endpoint": {
"metadata": {
"object_type": "http_endpoint",
"version": "1.2.0",
"description": ""
},
"url": "https://{datadog_base_url}/api/v2/logs/config/archives",
"http_method": "POST",
"headers": {},
"parameters": [
{
"name": "requestBody",
"tool_parameter_name": "archive_definition",
"description": "The definition of the new archive.",
"value_schema": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"data": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"attributes": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"destination": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "An archive's destination."
},
"include_tags": {
"val_type": "boolean",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "To store the tags in the archive, set the value \"true\".\nIf it is set to \"false\", the tags will be deleted when the logs are sent to the archive."
},
"name": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The archive name."
},
"query": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The archive query/filter. Logs matching this query are included in the archive."
},
"rehydration_max_scan_size_in_gb": {
"val_type": "integer",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "Maximum scan size for rehydration from this archive."
},
"rehydration_tags": {
"val_type": "array",
"inner_val_type": "string",
"enum": null,
"properties": null,
"inner_properties": null,
"description": "An array of tags to add to rehydrated logs from an archive."
}
},
"inner_properties": null,
"description": "The attributes associated with the archive."
},
"type": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The type of the resource. The value should always be archives."
}
},
"inner_properties": null,
"description": "The definition of an archive."
}
},
"inner_properties": null,
"description": "The definition of the new archive."
},
"accepted_as": "body",
"required": true,
"deprecated": false,
"default": null,
"documentation_urls": []
}
],
"documentation_urls": [],
"secrets": [
{
"arcade_key": "DATADOG_API_KEY",
"parameter_name": "DD-API-KEY",
"accepted_as": "header",
"formatted_value": null,
"description": "",
"is_auth_token": false
},
{
"arcade_key": "DATADOG_APPLICATION_KEY",
"parameter_name": "DD-APPLICATION-KEY",
"accepted_as": "header",
"formatted_value": null,
"description": "",
"is_auth_token": false
},
{
"arcade_key": "DATADOG_BASE_URL",
"parameter_name": "datadog_base_url",
"accepted_as": "path",
"formatted_value": null,
"description": "",
"is_auth_token": false
}
],
"request_body_spec": "{\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"description\": \"The logs archive.\",\n \"properties\": {\n \"data\": {\n \"description\": \"The definition of an archive.\",\n \"properties\": {\n \"attributes\": {\n \"description\": \"The attributes associated with the archive.\",\n \"properties\": {\n \"destination\": {\n \"description\": \"An archive's destination.\",\n \"oneOf\": [\n {\n \"description\": \"The Azure archive destination.\",\n \"properties\": {\n \"container\": {\n \"description\": \"The container where the archive will be stored.\",\n \"example\": \"container-name\",\n \"type\": \"string\"\n },\n \"integration\": {\n \"description\": \"The Azure archive's integration destination.\",\n \"properties\": {\n \"client_id\": {\n \"description\": \"A client ID.\",\n \"example\": \"aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa\",\n \"type\": \"string\"\n },\n \"tenant_id\": {\n \"description\": \"A tenant ID.\",\n \"example\": \"aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"tenant_id\",\n \"client_id\"\n ],\n \"type\": \"object\"\n },\n \"path\": {\n \"description\": \"The archive path.\",\n \"type\": \"string\"\n },\n \"region\": {\n \"description\": \"The region where the archive will be stored.\",\n \"type\": \"string\"\n },\n \"storage_account\": {\n \"description\": \"The associated storage account.\",\n \"example\": \"account-name\",\n \"type\": \"string\"\n },\n \"type\": {\n \"default\": \"azure\",\n \"description\": \"Type of the Azure archive destination.\",\n \"enum\": [\n \"azure\"\n ],\n \"example\": \"azure\",\n \"type\": \"string\",\n \"x-enum-varnames\": [\n \"AZURE\"\n ]\n }\n },\n \"required\": [\n \"storage_account\",\n \"container\",\n \"integration\",\n \"type\"\n ],\n \"type\": \"object\"\n },\n {\n \"description\": \"The GCS archive destination.\",\n \"properties\": {\n \"bucket\": {\n \"description\": \"The bucket where the archive will be stored.\",\n \"example\": \"bucket-name\",\n \"type\": \"string\"\n },\n \"integration\": {\n \"description\": \"The GCS archive's integration destination.\",\n \"properties\": {\n \"client_email\": {\n \"description\": \"A client email.\",\n \"example\": \"youremail@example.com\",\n \"type\": \"string\"\n },\n \"project_id\": {\n \"description\": \"A project ID.\",\n \"example\": \"project-id\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"client_email\"\n ],\n \"type\": \"object\"\n },\n \"path\": {\n \"description\": \"The archive path.\",\n \"type\": \"string\"\n },\n \"type\": {\n \"default\": \"gcs\",\n \"description\": \"Type of the GCS archive destination.\",\n \"enum\": [\n \"gcs\"\n ],\n \"example\": \"gcs\",\n \"type\": \"string\",\n \"x-enum-varnames\": [\n \"GCS\"\n ]\n }\n },\n \"required\": [\n \"bucket\",\n \"integration\",\n \"type\"\n ],\n \"type\": \"object\"\n },\n {\n \"description\": \"The S3 archive destination.\",\n \"properties\": {\n \"bucket\": {\n \"description\": \"The bucket where the archive will be stored.\",\n \"example\": \"bucket-name\",\n \"type\": \"string\"\n },\n \"encryption\": {\n \"description\": \"The S3 encryption settings.\",\n \"properties\": {\n \"key\": {\n \"description\": \"An Amazon Resource Name (ARN) used to identify an AWS KMS key.\",\n \"example\": \"arn:aws:kms:us-east-1:012345678901:key/DatadogIntegrationRoleKms\",\n \"type\": \"string\"\n },\n \"type\": {\n \"description\": \"Type of S3 encryption for a destination.\",\n \"enum\": [\n \"NO_OVERRIDE\",\n \"SSE_S3\",\n \"SSE_KMS\"\n ],\n \"example\": \"SSE_S3\",\n \"type\": \"string\",\n \"x-enum-varnames\": [\n \"NO_OVERRIDE\",\n \"SSE_S3\",\n \"SSE_KMS\"\n ]\n }\n },\n \"required\": [\n \"type\"\n ],\n \"type\": \"object\"\n },\n \"integration\": {\n \"description\": \"The S3 Archive's integration destination.\",\n \"properties\": {\n \"account_id\": {\n \"description\": \"The account ID for the integration.\",\n \"example\": \"123456789012\",\n \"type\": \"string\"\n },\n \"role_name\": {\n \"description\": \"The path of the integration.\",\n \"example\": \"role-name\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"role_name\",\n \"account_id\"\n ],\n \"type\": \"object\"\n },\n \"path\": {\n \"description\": \"The archive path.\",\n \"type\": \"string\"\n },\n \"storage_class\": {\n \"default\": \"STANDARD\",\n \"description\": \"The storage class where the archive will be stored.\",\n \"enum\": [\n \"STANDARD\",\n \"STANDARD_IA\",\n \"ONEZONE_IA\",\n \"INTELLIGENT_TIERING\",\n \"GLACIER_IR\"\n ],\n \"example\": \"STANDARD\",\n \"type\": \"string\",\n \"x-enum-varnames\": [\n \"STANDARD\",\n \"STANDARD_IA\",\n \"ONEZONE_IA\",\n \"INTELLIGENT_TIERING\",\n \"GLACIER_IR\"\n ]\n },\n \"type\": {\n \"default\": \"s3\",\n \"description\": \"Type of the S3 archive destination.\",\n \"enum\": [\n \"s3\"\n ],\n \"example\": \"s3\",\n \"type\": \"string\",\n \"x-enum-varnames\": [\n \"S3\"\n ]\n }\n },\n \"required\": [\n \"bucket\",\n \"integration\",\n \"type\"\n ],\n \"type\": \"object\"\n }\n ]\n },\n \"include_tags\": {\n \"default\": false,\n \"description\": \"To store the tags in the archive, set the value \\\"true\\\".\\nIf it is set to \\\"false\\\", the tags will be deleted when the logs are sent to the archive.\",\n \"example\": false,\n \"type\": \"boolean\"\n },\n \"name\": {\n \"description\": \"The archive name.\",\n \"example\": \"Nginx Archive\",\n \"type\": \"string\"\n },\n \"query\": {\n \"description\": \"The archive query/filter. Logs matching this query are included in the archive.\",\n \"example\": \"source:nginx\",\n \"type\": \"string\"\n },\n \"rehydration_max_scan_size_in_gb\": {\n \"description\": \"Maximum scan size for rehydration from this archive.\",\n \"example\": 100,\n \"format\": \"int64\",\n \"nullable\": true,\n \"type\": \"integer\"\n },\n \"rehydration_tags\": {\n \"description\": \"An array of tags to add to rehydrated logs from an archive.\",\n \"example\": [\n \"team:intake\",\n \"team:app\"\n ],\n \"items\": {\n \"description\": \"A given tag in the `<KEY>:<VALUE>` format.\",\n \"type\": \"string\"\n },\n \"type\": \"array\"\n }\n },\n \"required\": [\n \"name\",\n \"query\",\n \"destination\"\n ],\n \"type\": \"object\"\n },\n \"type\": {\n \"default\": \"archives\",\n \"description\": \"The type of the resource. The value should always be archives.\",\n \"example\": \"archives\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"type\"\n ],\n \"type\": \"object\"\n }\n },\n \"type\": \"object\"\n }\n }\n },\n \"description\": \"The definition of the new archive.\",\n \"required\": true\n}",
"use_request_body_schema_mode": true,
"validate_request_body_schema": true
}
}