def data_by_tags(tags, buckets: nil, bucketDuration: nil, # rubocop:disable Naming/VariableName
                     start: nil, ends: nil)
      data = {
        tags: tags_param(tags), buckets: buckets, bucketDuration: bucketDuration, start: start, end: ends
      }

      http_post('metrics/stats/query', data)
    end
def data_by_tags(tags, buckets: nil, bucketDuration: nil, # rubocop:disable Naming/VariableName
                     start: nil, ends: nil)
      data = {
        tags: tags_param(tags), buckets: buckets, bucketDuration: bucketDuration, start: start, end: ends
      }

      http_post('metrics/stats/query', data)
    end
Retrieve all types of metrics datapoints by tags
 @param tags [Hash]
 @param buckets [Integer] optional number of buckets
 @param bucketDuration [String] optional interval (default no aggregation)
 @param starts [Integer] optional timestamp (default now - 8h)
 @param ends [Integer] optional timestamp (default now)
 @return [Array[Hash]] datapoints