Skip to main content
PUT
/
api
/
v1
/
config
/
datasets
/
{slug}
{
  "dataset": {
    "name": "<string>",
    "configuration": {
      "log_dataset": {
        "match_criteria": {
          "query": "<string>"
        }
      },
      "trace_dataset": {
        "match_criteria": {
          "scope_filter": {
            "span_scopes": [
              {
                "duration": {
                  "max_secs": 123,
                  "min_secs": 123
                },
                "error": {
                  "value": true
                },
                "is_root_span": {
                  "value": true
                },
                "match_type": "INCLUDE",
                "operation": {
                  "in_values": [
                    "<string>"
                  ],
                  "match": "EXACT",
                  "value": "<string>"
                },
                "parent_operation": {
                  "in_values": [
                    "<string>"
                  ],
                  "match": "EXACT",
                  "value": "<string>"
                },
                "parent_service": {
                  "in_values": [
                    "<string>"
                  ],
                  "match": "EXACT",
                  "value": "<string>"
                },
                "service": {
                  "in_values": [
                    "<string>"
                  ],
                  "match": "EXACT",
                  "value": "<string>"
                },
                "span_count": {
                  "max": 123,
                  "min": 123
                },
                "tags": [
                  {
                    "key": "<string>",
                    "numeric_value": {
                      "comparison": "EQUAL",
                      "value": 123
                    },
                    "value": {
                      "in_values": [
                        "<string>"
                      ],
                      "match": "EXACT",
                      "value": "<string>"
                    }
                  }
                ]
              }
            ]
          },
          "span": [
            {
              "duration": {
                "max_secs": 123,
                "min_secs": 123
              },
              "error": {
                "value": true
              },
              "is_root_span": {
                "value": true
              },
              "match_type": "INCLUDE",
              "operation": {
                "in_values": [
                  "<string>"
                ],
                "match": "EXACT",
                "value": "<string>"
              },
              "parent_operation": {
                "in_values": [
                  "<string>"
                ],
                "match": "EXACT",
                "value": "<string>"
              },
              "parent_service": {
                "in_values": [
                  "<string>"
                ],
                "match": "EXACT",
                "value": "<string>"
              },
              "service": {
                "in_values": [
                  "<string>"
                ],
                "match": "EXACT",
                "value": "<string>"
              },
              "span_count": {
                "max": 123,
                "min": 123
              },
              "tags": [
                {
                  "key": "<string>",
                  "numeric_value": {
                    "comparison": "EQUAL",
                    "value": 123
                  },
                  "value": {
                    "in_values": [
                      "<string>"
                    ],
                    "match": "EXACT",
                    "value": "<string>"
                  }
                }
              ]
            }
          ],
          "trace": {
            "duration": {
              "max_secs": 123,
              "min_secs": 123
            },
            "error": {
              "value": true
            }
          }
        }
      },
      "type": "TRACES"
    },
    "created_at": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "slug": "<string>",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

API-Token
string
header
required

Chronosphere API token

Path Parameters

slug
string
required

Body

application/json
create_if_missing
boolean

If true, the Dataset will be created if it does not already exist, identified by slug. If false, an error will be returned if the Dataset does not already exist.

dataset
object

The Dataset to update.

dry_run
boolean

If true, validates the specified configuration without creating or updating the Dataset. If the specified configuration is valid, the endpoint returns a partial response without the Dataset. If the specified configuration is invalid, the endpoint returns an error.

Response

A successful response containing the updated Dataset.

dataset
object