Ingests Smartscape events from built-in endpoints.
The request consumes an application/json payload.
| POST | SaaS | https://{your-environment-id}.live.dynatrace.com/platform/ingest/v1/smartscape.events |
To execute this request, you need an access token with openpipeline.events_smartscape scope.
To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| body | Smartscape | The JSON body of the request. Contains the events for ingest. | body | Required |
SmartscapeEvents objectThe Smartscape events to be ingested. This can either be a list of events, or a single event.
| Element | Type | Description | Required |
|---|---|---|---|
| <*> | Smartscape | List of Smartscape events to be ingested. | Optional |
SmartscapeEvent objectA Smartscape node upsert event. Exactly one identity mode must be used: Mode 1 supplies a pre-computed id; Mode 2 supplies type + id_components and the server computes the ID. The two modes are mutually exclusive — supplying both id and type is rejected.
fields and tag contexts are top-level keys. Tag contexts use a tags: prefix (e.g. tags:ext.source).
| Element | Type | Description | Required |
|---|---|---|---|
| additionalProperties | object | - | Optional |
| dt.security_context | Any | Security context. String or array of strings. | Optional |
| dynamic_edges | object | Dynamic topology edges, keyed by relationship name. Each value is an array of target node references. | Optional |
| event.version | integer | Schema version of this event. Optional — version 1 is applied when absent. Must be a known version; currently only 1 is accepted. | Optional |
| id | string | Pre-computed Smartscape entity ID (Mode 1). Must match | Optional |
| id_components | object[] | Identity components used to compute the entity ID (Mode 2). Required when | Optional |
| static_edges | object | Static topology edges, keyed by relationship name. Each value is an array of target node references. | Optional |
| timestamp | Any | Event timestamp. Optional — current server time is used when absent. Accepted formats: RFC3339 string (e.g. | Optional |
| type | string | Entity type (Mode 2). Must match | Optional |
| update_lifetime | boolean | Whether to advance the entity's last-seen timestamp. Defaults to true. Set to false to update fields without refreshing the last-seen time. | Optional |
AnyValue objectA schema representing an arbitrary value type.
SmartscapeEdge objectA reference to a related Smartscape node used to define a topology edge. Either id (Mode 1) or type + id_components (Mode 2) must be present. The two modes are mutually exclusive.
| Element | Type | Description | Required |
|---|---|---|---|
| id | string | Pre-computed ID of the related node (Mode 1). Must match | Optional |
| id_components | object[] | Identity components of the related node (Mode 2). Required when | Optional |
| type | string | Type of the related node (Mode 2). Must match | Optional |
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
[{"event.version": 1,"type": "HOST","id_components": [{"hostname": "myhost.example.com"}],"dt.security_context": "my-security-context","update_lifetime": true,"name": "my-host","ext.custom.region": "eu-west-1","primary_tags.env": "production","tags:custom.infra": {"tier": "core"},"tags:ext.source": {"env": "production"},"static_edges": {"belongs_to": [{"type": "HOST_GROUP","id_components": [{"group": "grp-1"}]}]},"dynamic_edges": {"runs_on": [{"id": "PROCESS_GROUP_INSTANCE-0000000000000001"}]}}]
| Code | Type | Description |
|---|---|---|
| 202 | - | Accepted. Response doesn't have a body. |
| 400 | Error | Failed. The input is invalid. |
| 404 | Error | Failed. Endpoint not found. |
| 413 | Error | Failed. Content too large. |
| 429 | Error | Failed. Too many requests. |
| 5XX | Error | Server-side error. |
ErrorResponseEnvelope objectEncloses the encountered error.
| Element | Type | Description |
|---|---|---|
| error | Error | Basic information of the encountered error. |
ErrorResponse objectBasic information of the encountered error.
| Element | Type | Description |
|---|---|---|
| code | integer | The returned HTTP status code. |
| details | Error | Detailed information of the error. |
| message | string | Description of the encountered error. |
ErrorResponseDetails objectDetailed information of the error.
| Element | Type | Description |
|---|---|---|
| type | string | Defines the actual set of fields depending on the value. See one of the following objects:
The element can hold these values
|
{"error": {"code": 400,"message": "The input is invalid."}}