export const VegaSkeletonRuntimeMetricsPayloadDefinition = [
  {
    payloadKey: 'IS_LOAD_METHOD_CALLED',
    payloadDescription: 'Indicate if the method load of public API VegaSkeletonLoaderController 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 === 'VegaSkeletonLoaderController' && methodName === 'load',
    /**
     * The function checks if the method name is load.
     *
     * @returns {boolean} A boolean value
     */
    payloadValue: () => {
      return true;
    },
  },
  {
    payloadKey: 'IS_UNLOAD_METHOD_CALLED',
    payloadDescription: 'Indicate if the method unLoad of public API VegaSkeletonLoaderController 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 === 'VegaSkeletonLoaderController' && methodName === 'unLoad',
    /**
     * The function checks if the method name is unLoad.
     *
     * @returns {boolean} A boolean value
     */
    payloadValue: () => {
      return true;
    },
  },
  {
    payloadKey: 'IS_UNLOADALL_METHOD_CALLED',
    payloadDescription: 'Indicate if the method unLoadAll of public API VegaSkeletonLoaderController 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 === 'VegaSkeletonLoaderController' && methodName === 'unLoadAll',
    /**
     * The function checks if the method name is unLoadAll.
     *
     * @returns {boolean} A boolean value
     */
    payloadValue: () => {
      return true;
    },
  },
];
