export const VegaTranslationRuntimeMetricsPayloadDefinition = [
  {
    payloadKey: 'IS_INIT_METHOD_CALLED',
    payloadDescription: 'Indicate if the method load of public API VegaTranslation.init 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 === 'TranslationController' && methodName === 'init',
    /**
     * The function checks if the method name is loaded.
     *
     * @returns {boolean} A boolean value
     */
    payloadValue: () => {
      return true;
    },
  },
  {
    payloadKey: 'IS_CHANGE_LANGUAGE_METHOD_CALLED',
    payloadDescription: 'Indicate if the method load of public API VegaTranslation.changeLanguage 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 === 'TranslationController' && methodName === 'changeLanguage',
    /**
     * The function checks if the method name is load.
     *
     * @returns {boolean} A boolean value
     */
    payloadValue: () => {
      return true;
    },
  },
];
