Class: Trackbone

Trackbone(timezone)

The Trackbone class. Fetches all running or stopped instances from your AWS Account with a trackbone tag, analyses the tag and starts and stops the instances according to the definition

Uses UTC as default timezone. When you set the environment variable TIMEZONE, this value will be used instead.

Constructor

new Trackbone(timezone)

Parameters:
Name Type Description
timezone string

The timezone trackbone should use

Author:
Source:

Methods

(static) verifyTrackboneTag(bone) → {boolean}

Verifies the correct syntax of the trackbone tag

Parameters:
Name Type Description
bone string
Source:
Returns:
Type
boolean

fetchInstances(dayOfWeek, time)

Fetches all instances and creates the according schedules. In the end, creates a start/stop object with two entries, first one "shouldStart" is an array with all the InstanceIds of instances, that should be started and the second one "shouldStop" contains all InstanceIds of instances, that should stop.

Parameters:
Name Type Description
dayOfWeek

The ISO day of the week (1-7)

time

The time in format HH:mm

Source:

run() → {Promise}

Runs trackbone

Source:
Returns:
Type
Promise