export const VegaIconManagerRuntimeMetricsPayloadDefinition = [
  {
    payloadKey: 'IS_REGISTER_METHOD_CALLED',
    payloadDescription: 'Indicate if the method register of public API IconManager 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 === 'IconManager' && methodName === 'register',
    /**
     * The function checks if the method name is load.
     *
     * @returns {boolean} A boolean value
     */
    payloadValue: () => {
      return true;
    },
  },
  {
    payloadKey: 'IS_GETICON_METHOD_CALLED',
    payloadDescription: 'Indicate if the method getIcon of public API IconManager 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 === 'IconManager' && methodName === 'getIcon',
    /**
     * The function checks if the method is been called.
     *
     * @returns {boolean} A boolean value
     */
    payloadValue: () => {
      return true;
    },
  },
  {
    payloadKey: 'IS_HASICON_METHOD_CALLED',
    payloadDescription: 'Indicate if the method hasIcon of public API IconManager 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 === 'IconManager' && methodName === 'hasIcon',
    /**
     * The function checks if the method name is unLoadAll.
     *
     * @returns {boolean} A boolean value
     */
    payloadValue: () => {
      return true;
    },
  },
];
