forked from starlingx-staging/stx-ceilometer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use hashmap to quickly find matching resource def
we shouldn't waste our time looping through resources and searching metrics to find a match. just build hashmap and find the resource based on metric. this removes fnmatch functionality because we don't match on wildcards and the code itself actually requires metric names to be explicit to create_metrics Change-Id: I2398247270217759c876ab5a9b60038dad79a9d3
- Loading branch information
Showing
2 changed files
with
13 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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