app:dynatrace.site.reliability.guardian:guardians)Create new guardians and add objectives. See documentation
| Schema ID | Schema groups | Scope |
|---|---|---|
app:dynatrace.site.reliability.guardian:guardians | - | environment |
| GET | Managed | https://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/app:dynatrace.site.reliability.guardian:guardians |
| GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/app:dynatrace.site.reliability.guardian:guardians |
| GET | Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/app:dynatrace.site.reliability.guardian:guardians |
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.
| Property | Type | Description | Required |
|---|---|---|---|
Namename | text | Unique display name for this guardian. | Required |
Descriptiondescription | text | Optional explanation of this guardian's purpose and scope. | Optional |
Tagstags | set | Define key/value pairs that further describe this guardian. | Required |
DQL variablesvariables | Variable[] | Define variables for dynamically defining DQL queries | Required |
Objectivesobjectives | Objective[] | The validation criteria evaluated each time this guardian is executed. | Required |
Event kindeventKind | enum | If set to null/'BIZ_EVENT' validation events stored as bizevents in Grail. If set to 'SDLC_EVENT' validation events stored as SDLC events The element has these enums
| Optional |
Variable object| Property | Type | Description | Required |
|---|---|---|---|
Namename | text | Alphanumeric/underscore identifier referenced in DQL queries as $name. Must be unique within the guardian. | Required |
Valuedefinition | text | Default value substituted for $name in DQL queries. Can be overridden at runtime via execution context. | Required |
Objective object| Property | Type | Description | Required |
|---|---|---|---|
Objective namename | text | Unique name within this guardian. Included in every emitted validation event as the objective identifier. | Required |
Descriptiondescription | text | Optional short explanation of what this objective measures. | Optional |
Objective typeobjectiveType | enum | How the objective value is computed: via a DQL query or an existing SLO metric. The element has these enums
| Required |
DQL querydqlQuery | text | DQL query to execute. The first numeric result becomes the objective value. Supports $variable interpolation. | Required |
Display UnitdisplayUnit | DisplayUnit | Optional unit conversion and decimal formatting applied when displaying the DQL result in the UI. | Optional |
Enable auto adaptive thresholdautoAdaptiveThresholdEnabled | boolean | Dynamically computes thresholds from 30 days of history. | Optional |
Reference SLOreferenceSlo | text | Please enter the metric key of your desired SLO. SLO metric keys have to start with 'func:slo.' | Required |
Comparison operatorcomparisonOperator | enum | Pass/fail direction: use ≥ when higher values are better, ≤ when lower values are better. The element has these enums
| Required |
Targettarget | float | Hard pass/fail threshold. Missing this value yields FAIL. If unset with no warning, status is always INFO. | Optional |
Warningwarning | float | Soft threshold. Results between warning and target yield WARNING. When set alone, yields PASS or WARNING. | Optional |
Segmentssegments | Segment[] | Optional Grail segments to scope the DQL query to specific data. | Required |
Linkslinks | ObjectiveLink[] | Fields for adding relevant links to this objective. | Required |
DisplayUnit object| Property | Type | Description | Required |
|---|---|---|---|
Base Unitbase | text | Unit the DQL query returns its result in. Source unit for conversion. | Required |
display as unitdisplay | text | Unit to display the value in after conversion. Use Default to show the base unit as-is. | Required |
Decimalsdecimals | integer | Number of decimal places (0-4) used when formatting the displayed value. | Required |
Segment object| Property | Type | Description | Required |
|---|---|---|---|
Segment IDid | text | Dynatrace Grail segment ID that scopes the DQL query to data within the segment. | Required |
Segment Variablesvariables | SegmentVariable[] | Variables to parameterize the segment filter. | Required |
ObjectiveLink object| Property | Type | Description | Required |
|---|---|---|---|
URLurl | text | HTTPS link associated with this objective. | Required |
Display textlabel | text | Short description for the link. | Optional |
SegmentVariable object| Property | Type | Description | Required |
|---|---|---|---|
Variable Namename | text | Name of the variable within the segment definition. | Required |
Variable Valuesvalues | list | One or more values for the variable, enabling multi-value filter expansion. | Required |