imports/vx/both/code/vxapp.js
/**
     * Determine whether a given subsystem is in a particular state.
     *
     * @param {string} subsystem Subsystem (e.g., "LIME_LIGHT_INSTANCE", "GATEWAY").
     * @param {object} record Record with subsystemStatus.
     * @param {string} status Test status (e.g., "RED").
     * @return {boolean} True if subsystem status matches test status.
     */
Determine whether a given subsystem is in a particular state.
@param {string} subsystem Subsystem .
@param {object} record Record with subsystemStatus.
@param {string} status Test status .
@return {boolean} True if subsystem status matches test status.
Determine whether a given subsystem is in a particular state . @param { string } subsystem Subsystem . @param { object } record Record with subsystemStatus . @param { string } status Test status . @return { boolean } True if subsystem status matches test status .
isSubsystemStatus(subsystem, record, status) {
        let subsystemStatus = VXApp.getSubsystemStatus(subsystem, record)
        if (!subsystemStatus) {
            return status === "GRAY"
        }
        return subsystemStatus.status === status
    }
isSubsystemStatus ( subsystem , record , status ) { let subsystemStatus = VXApp . getSubsystemStatus ( subsystem , record ) if ( ! subsystemStatus ) { return status === "GRAY" } return subsystemStatus . status === status }
Determine whether a given subsystem is in a particular state.
Determine whether a given subsystem is in a particular state .