• Home
  • Dynatrace API
  • Environment
  • Settings
  • Schemas
  • Capture business events with OneAgent

Settings API - Capture business events with OneAgent schema table

Capture business events with OneAgent (builtin:bizevents.http.incoming)

OneAgent can capture business events from incoming HTTP requests. To activate this feature, add capture rules below.

Capture rules tell OneAgent to capture business events when specific webservices or endpoints are called. A capture rule consists of trigger rules, mandatory business event information (e.g. type and provider) and optional event data fields. A trigger defines the criteria that, when met, cause a business event to be captured (e.g. endpoint “/api/buy” is called). By adding event data fields to your business event, you can extract data directly from the incoming request payload. To limit the scope of a capture rule to a certain Host-Group or Host, create the rule directly in the Host-Group or Host setting screen.

Learn more by visiting our documentation.

Schema IDSchema groupsScope
builtin:bizevents.http.incoming
  • group:business-analytics.business-events-sources
  • group:business-analytics
HOST - Host
HOST_GROUP - Host Group
environment
Retrieve schema via Settings API
GETManagedhttps://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:bizevents.http.incoming
SaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:bizevents.http.incoming
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:bizevents.http.incoming

Authentication

To execute this request, you need an access token with Read settings (settings.read) scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

PropertyLabelTypeDescriptionRequired
enabledEnabledboolean-required
ruleNameRule nametext-required
triggersTriggersset

Define conditions to trigger business events from incoming web requests. Whenever one condition applies the event gets captured.

required
eventEvent meta dataEventComplex-required

Request body objects

The EventAttributeComplex object
PropertyLabelTypeDescriptionRequired
sourceTypeData sourceenum-required
sourceFixed valuetext-required
pathPathtext

See our documentation

required
The EventCategoryAttributeComplex object
PropertyLabelTypeDescriptionRequired
sourceTypeData sourceenum-required
sourceFixed valuetext-required
pathPathtext

See our documentation

required
The EventDataAttributeComplex object
PropertyLabelTypeDescriptionRequired
sourceTypeData sourceenum-required
sourceFixed valuetext-required
pathPathtext

See our documentation

required
The EventDataFieldComplex object
PropertyLabelTypeDescriptionRequired
nameField nametext

Field name to be added to data.

required
source-EventDataAttributeComplex-required
The DataSourceComplex object
PropertyLabelTypeDescriptionRequired
dataSourceData sourceenum-required
pathPathtext

See our documentation

required
The MatcherComplex object
PropertyLabelTypeDescriptionRequired
source-DataSourceComplex-required
typeOperatorenum-required
valueValuetext-required
caseSensitiveCase sensitiveboolean-required
The EventComplex object
PropertyLabelTypeDescriptionRequired
provider-EventAttributeComplex

Event provider

required
type-EventAttributeComplex

Event type

required
category-EventCategoryAttributeComplex

Event category

required
dataEvent dataset

Additional attributes for the business event.

required