Skip to content

ExperimentTarget

Source code in docs_src/capo_cloudwatchomni/types/experiment_target.py
class ExperimentTarget(TypedDict, closed=True):
    name: NotRequired["str"]
    """A display name for the target."""
    service_name: "str"
    """The service.name of the target's spans. Copied, with environment, into every case and run record. Control characters, apostrophes and backslashes are not allowed, because this value and environment are matched against span attributes and interpolated into telemetry query filters."""
    environment: "str"
    """The environment the target runs in, for example beta or prod. Copied, with serviceName, into every case and run record."""
    definition: "capo_cloudwatchomni.types.target_definition.TargetDefinition"
    """The kind of target and its identity. Cannot be changed after the experiment is created."""

definition instance-attribute

definition: TargetDefinition

The kind of target and its identity. Cannot be changed after the experiment is created.

environment instance-attribute

environment: str

The environment the target runs in, for example beta or prod. Copied, with serviceName, into every case and run record.

name instance-attribute

name: NotRequired[str]

A display name for the target.

service_name instance-attribute

service_name: str

The service.name of the target's spans. Copied, with environment, into every case and run record. Control characters, apostrophes and backslashes are not allowed, because this value and environment are matched against span attributes and interpolated into telemetry query filters.