Parameters for creating a new subscription. A subscription defines criteria for matching events and how the subscription's subscriber should be notified about those events.

interface NotificationSubscriptionCreateParameters {
    channel?: ISubscriptionChannel;
    description?: string;
    filter: ISubscriptionFilter;
    scope?: SubscriptionScope;
    subscriber?: IdentityRef;
}

Properties

Channel for delivering notifications triggered by the new subscription.

description?: string

Brief description for the new subscription. Typically describes filter criteria which helps identity the subscription.

Matching criteria for the new subscription. ExpressionFilter

The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B.

subscriber?: IdentityRef

User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user.