5.18. keynote

The keynote module fetches telemetry from Keynote(TM) API calls.

This module rides on the http module and provides a secondary phase of JSON parsing transformation that turns the Keynote data into something useful.

loader

lua

object

noit.module.keynote

5.18.1. Module Configuration

5.18.2. Check Configuration

base_url
required

optional

default

https://api.keynote.com/keynote/api/

allowed

.+

The URL including schema and hostname (as you would type into a browser's location bar).

api_key
required

required

allowed

.+

The Keynote-issued API access key.

transpagelist
required

optional

allowed

\d+(?:,\d+)*

A list of pages.

pagecomponent
required

required

allowed

.

Page component ID.

slotid_list
required

required

allowed

\d+(?:,\d+)*

A list of Keynote slot ids.

slot_alias_(\d+)
required

optional

allowed

.+

A human readable alias for a given slot id.

Example 5.19. Checking Keynote services.

This example checks two slots: 10 and 11.

      <noit>
        <modules>
          <loader image="lua" name="lua">
            <config><directory>/opt/reconnoiter/libexec/modules-lua/?.lua</directory></config>
          </loader>
          <module loader="lua" name="keynote" object="noit.module.keynote"/>
        </modules>
        <checks>
          <keynote target="api.keynote.com" module="keynote">
            <config>
              <api_key>917c1660-5136-11e3-afd7-7cd1c3dcddf7</api_key>
            </config>
            <check uuid="36b8ba72-7968-11dd-a67f-d39a2cc3f9de" period="300000">
              <config>
                <slotid_list>10,11</slotid_list>
              </config>
            </check>
          </keynote>
        </checks>
      </noit>