pushover-notification - v1.0.3
    Preparing search index...

    Service layer for Pushover notifications with configurable enable/disable state

    DevOps Notification Tool

    Alert Management System

    const pushover = new PushoverService({
    userKey: 'YOUR_USER_KEY',
    apiToken: 'YOUR_API_TOKEN'
    });

    await pushover.sendNotification({
    message: 'Server downtime alert!',
    title: 'Critical Alert'
    });
    Index

    Constructors

    • Parameters

      • config: PushoverConfig

        Configuration object for Pushover API

        • apiToken: string

          Application API token (30 characters)

        • userKey: string

          Pushover user/group key (32 characters)

      Returns PushoverService

      // Creates enabled service
      new PushoverService({ userKey: 'user123', apiToken: 'token456' });
      // Creates disabled service (missing credentials)
      new PushoverService({});

    Methods

    • Returns boolean

      Service activation status

      isEnabled

      Checks if service is properly configured and enabled

      if (pushover.isEnabled()) {
      // Send notifications
      }
    • Parameters

      • message: PushoverMessage

        Notification payload

        • message: string

          The message body (required, 1024 chars max)

        • title: string

          Message title (250 chars max)

        • Optionalpriority?: number

          Priority (-2 to 2, default 0)

        • Optionalsound?: string

          Notification sound (see Pushover sound list)

        • Optionaltimestamp?: number

          UNIX timestamp for message dating

      Returns Promise<null | string>

      Receipt ID for high-priority messages or null

      sendNotification

      Sends notification through Pushover API

      When API request fails

      await pushover.sendNotification({
      message: 'Database backup completed',
      title: 'Backup Status',
      priority: 1
      });