Data

Data

The class used to track FileMaker API data usage.

Constructor

new Data()

Source:

Members

in :Number

A number containing the total amount of data called since the class was created or last cleared.

Source:
Type:
  • Number

out :Number

A number containing the total amount of data called since the class was created or last cleared.

Source:
Type:
  • Number

out :string

A string containing the ISO date from the last time the class was created or last cleared.

Source:
Type:
  • string

track :Boolean

A boolean value set to true if the client should track data usage.

Source:
Type:
  • Boolean

Methods

(static) clear()

Clears the data in and out and resets the since date to the current time as an ISO date string.

Source:

(static) incoming(data) → {Any}

increments the amount of data being sent to FileMaker.

Source:
Parameters:
Name Type Description
data Any

The data to record.

Returns:
Type:
Any

Returns data unmutated.

(static) outgoing(data) → {Any}

increments the amount of data being recieved from filemaker.

Source:
Parameters:
Name Type Description
data Any

The data to record.

Returns:
Type:
Any

Returns data unmutated.

(static) status() → {Object}

Prettifies the class data by stringifying the in and out data and returning since.

Source:
Returns:
Type:
Object

An object contain the key of data with keys of since, in, and out as strings.

Data

new Data()

Source:

Members

in :Number

A number containing the total amount of data called since the class was created or last cleared.

Source:
Type:
  • Number

out :Number

A number containing the total amount of data called since the class was created or last cleared.

Source:
Type:
  • Number

out :string

A string containing the ISO date from the last time the class was created or last cleared.

Source:
Type:
  • string

track :Boolean

A boolean value set to true if the client should track data usage.

Source:
Type:
  • Boolean

Methods

(static) clear()

Clears the data in and out and resets the since date to the current time as an ISO date string.

Source:

(static) incoming(data) → {Any}

increments the amount of data being sent to FileMaker.

Source:
Parameters:
Name Type Description
data Any

The data to record.

Returns:
Type:
Any

Returns data unmutated.

(static) outgoing(data) → {Any}

increments the amount of data being recieved from filemaker.

Source:
Parameters:
Name Type Description
data Any

The data to record.

Returns:
Type:
Any

Returns data unmutated.

(static) status() → {Object}

Prettifies the class data by stringifying the in and out data and returning since.

Source:
Returns:
Type:
Object

An object contain the key of data with keys of since, in, and out as strings.