Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set unit when sending NetSim metrics #24757

Merged
merged 2 commits into from Sep 12, 2018
Merged

Set unit when sending NetSim metrics #24757

merged 2 commits into from Sep 12, 2018

Conversation

islemaster
Copy link
Contributor

Sets the appropriate unit when sending NetSim metrics to Cloudwatch. In this particular case, our unit is always either "Count" or "Bytes". See the docs for possible values to the :unit parameter.

Sets the appropriate unit when sending NetSim metrics to Cloudwatch.  In this particular case, our unit is always either "Count" or "Bytes".  See [the docs](https://docs.aws.amazon.com/sdkforruby/api/Aws/CloudWatch/Types/MetricDatum.html#unit-instance_method) for possible values to the `:unit` parameter.
@@ -504,7 +504,7 @@ def delete_messages_for_nodes(shard_id, node_ids)
# @param [String] event_type - unique metric key within NetSimApi
# @param [Number] value (default 1) value of measurement, omit if we only care
# about event counts.
def record_metric(event_type, value = 1)
def record_metric(event_type, value = 1, unit = 'Count')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super small - I would add a param comment for the new param, just because we have them for the others

@islemaster islemaster merged commit 0d91e96 into staging Sep 12, 2018
@islemaster islemaster deleted the cloudwatch-netsim branch September 12, 2018 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants