export const ZIndexManagerRuntimeMetricsPayloadDefinition = [
  {
    payloadKey: 'IS_OVERRIDEZINDEXBASICVALUES_METHOD_CALLED',
    payloadDescription: 'Indicate if the method overrideZIndexBasicValues of public API ZIndexManager 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 === 'VegaZIndexManager' && methodName === 'overrideZIndexBasicValues',
    /**
     * The function checks if the method name is load.
     *
     * @returns {boolean} A boolean value
     */
    payloadValue: () => {
      return true;
    },
  },
  {
    payloadKey: 'zIndexBasicValuesGreatThanTenThousand',
    payloadDescription: 'Indicate if the basic z-index value is great than ten thousand',
    /**
     * 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 === 'VegaZIndexManager' && methodName === 'overrideZIndexBasicValues',
    /**
     * The function checks if the method name is load.
     *
     * @param {unknown[]} args - The parameter of slimmer method
     * @returns {boolean} A boolean value
     */
    payloadValue: (args) => {
      return args['base'] > 10000;
    },
  },
];
