Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Clarify behavior when metric unit is not found #49

@mm318

Description

@mm318

As one can see here

datum.SetUnit(Aws::CloudWatch::Model::StandardUnitMapper::GetStandardUnitForName(unit_name));

If the user-specified unit (which is a free-form std::string) is not found in unit_mapper, it will fallback to using the AWS C++ SDK's GetStandardUnitForName() function to find the corresponding relevant StandardUnit. GetStandardUnitForName() may return StandardUnit::NOT_SET.

Is this the best behavior? Why have a unit_mapper if the AWS C++ SDK already provides a GetStandardUnitForName() function?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions