Source

infrastructure-summary/infrastructure-summary-actions.js

const prefix = 'situationalAwareness/infrastructure';
const LOAD = `${prefix}/LOAD`;
const CHECK_CONNECTION = `${prefix}/CHECK_CONNECTION`;

/**
 * Provides a possibility to work with a infrastructure summary screen.
 *
 * @module situationalAwareness/infrastructure
 */
export default {
    CHECK_CONNECTION,
    /**
     * Creates a control task to check connection of the host.
     *
     * @param {String} ciId - Configuration Item Id
     * @property {string} type - CHECK_CONNECTION
     */
    checkConnection: (ciId) => ({
        ciId,
        type: CHECK_CONNECTION
    }),
    /**
     * Loads the data for an infrastructure summary opened on {flowId} tab.
     *
     * @param {string} flowId - The unique Id of opened tab
     * @property {string} type - LOAD
     */
    load: (flowId) => ({
        flowId,
        type: LOAD
    }),
    LOAD
};