Created
October 25, 2018 08:35
-
-
Save joaoh82/b531cd576c7a16eb8830a67417ca09fa to your computer and use it in GitHub Desktop.
option 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ['Max', 'Remaining'].forEach(metric => { | |
| const metricName = `limits.salesforce.${limit}.${metric}`; | |
| const value = limits[limit][metric]; | |
| console.log( | |
| `MONITORING|${unixEpochTimestamp}|${value}|${metricType}|${metricName}|#${tagsTrackBeta}` | |
| ); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
const logger = metric => {...}
['a', 'b'].map(
logger
)