Skip to content

Instantly share code, notes, and snippets.

@joaoh82
Created October 25, 2018 08:35
Show Gist options
  • Select an option

  • Save joaoh82/b531cd576c7a16eb8830a67417ca09fa to your computer and use it in GitHub Desktop.

Select an option

Save joaoh82/b531cd576c7a16eb8830a67417ca09fa to your computer and use it in GitHub Desktop.
option 1
['Max', 'Remaining'].forEach(metric => {
const metricName = `limits.salesforce.${limit}.${metric}`;
const value = limits[limit][metric];
console.log(
`MONITORING|${unixEpochTimestamp}|${value}|${metricType}|${metricName}|#${tagsTrackBeta}`
);
});
@jameyquinn
Copy link
Copy Markdown

const logger = metric => {...}
['a', 'b'].map(
logger
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment