> **Experimental**
>
> `@aws-cdk/aws-medialive-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# Pipeline

MediaLive pipeline (channel pipeline 0 or 1).

`STANDARD` channels run two redundant pipelines (`PIPELINE_0`, `PIPELINE_1`).
`SINGLE_PIPELINE` channels run only `PIPELINE_0`.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/channel.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-medialive-alpha/lib/channel.ts#L225)

## Example

```ts
declare const channel: medialive.Channel;
declare const stack: Stack;

channel.metricDroppedFrames(medialive.Pipeline.PIPELINE_0).createAlarm(stack, 'DroppedFrames', {
  threshold: 1,
  evaluationPeriods: 2,
});

channel.metricSvqTime(medialive.Pipeline.PIPELINE_0).createAlarm(stack, 'SvqTime', {
  threshold: 0,
  evaluationPeriods: 1,
});

// Custom metric by name with sum statistic
channel.metric('Output4xxErrors', medialive.Pipeline.PIPELINE_0, { statistic: 'sum' });
```

## Properties

- `PIPELINE_0`: [Pipeline](/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.Pipeline.html) (static) — Pipeline 0.

  Always available on every channel.

- `PIPELINE_1`: [Pipeline](/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.Pipeline.html) (static) — Pipeline 1.

  Available only on `STANDARD` channels.

## Methods

- `toString(): string` — Returns the CloudWatch dimension value for this pipeline (`'0'` or `'1'`).
