You can set the organization or company that is accessing a particular API using the atatus.setCompany() function. By doing so, you can analyze how your Node.js API is being used.

Compatibility

Requires Node.js agent version 1.5.4 or higher.

Syntax

atatus.setCompany(obj)

Parameter

Parameter Type Description
obj Object (Required) Contains company id. Id is required.

Example

copy
icon/buttons/copy
import atatus from 'atatus-nodejs';

// As of now, it supports only id property.
atatus.setCompany({
    id: 'Google',
})

See also