export const VegaNotifyRuntimeMetricsPayloadDefinition = [
  {
    payloadKey: 'IS_OPEN_METHOD_CALLED',
    payloadDescription: 'Indicate if the method open of public API VegaNotifyController is called',
    /**
     * Indicate whether the method is collected when the method been called .
     *
     * @param {string} scope - The class name of public api
     * @param {string} methodName - The method name called by the public api
     * @returns {boolean} A boolean value
     */
    canAccept: (scope, methodName) => scope === 'VegaNotifyController' && methodName === 'open',
    /**
     * The function checks if the method name is open.
     *
     * @returns {boolean} A boolean value
     */
    payloadValue: () => {
      return true;
    },
  },
  {
    payloadKey: 'IS_CLOSE_METHOD_CALLED',
    payloadDescription: 'Indicate if the method close of public API VegaNotifyController is called',
    /**
     * Indicate whether the method is collected when the method been called .
     *
     * @param {string} scope - The class name of public api
     * @param {string} methodName - The method name called by the public api
     * @returns {boolean} A boolean value
     */
    canAccept: (scope, methodName) => scope === 'VegaNotifyController' && methodName === 'close',
    /**
     * The function checks if the method name is close.
     *
     * @returns {boolean} A boolean value
     */
    payloadValue: () => {
      return true;
    },
  },
  {
    payloadKey: 'IS_CLOSEALL_METHOD_CALLED',
    payloadDescription: 'Indicate if the method closeAll of public API VegaNotifyController is called',
    /**
     * Indicate whether the method is collected when the method been called .
     *
     * @param {string} scope - The class name of public api
     * @param {string} methodName - The method name called by the public api
     * @returns {boolean} A boolean value
     */
    canAccept: (scope, methodName) => scope === 'VegaNotifyController' && methodName === 'closeAll',
    /**
     * The function checks if the method name is closeAll.
     *
     * @returns {boolean} A boolean value
     */
    payloadValue: () => {
      return true;
    },
  },
];
