[ 
https://issues.apache.org/jira/browse/KUDU-3126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

hutao closed KUDU-3126.
-----------------------
    Fix Version/s: 1.11.1
       Resolution: Won't Fix

{code:java}
// code placeholder
struct MetricFilters {
  // A set of substrings to filter entity against, where empty matches all.
  //
  // entity type.
  std::vector<std::string> entity_types;
  // entity id.
  std::vector<std::string> entity_ids;
  // entity attributes.
  //
  // Note that the use of attribute filters is a little bit different. The
  // number of entries should always be even because each pair represents a
  // key and a value. For example: attributes=k1,v1,k1,v2,k2,v3, that means
  // the attribute object is matched when one of these filters is satisfied.
  std::vector<std::string> entity_attrs;
  // entity metrics.
  std::vector<std::string> entity_metrics;
};
{code}
I found the usage of "attributes" and must pass an even number of parameters.

> The "attributes" attribute was filtered in the metrics information and an 
> HTTP 400 error was obtained.
> ------------------------------------------------------------------------------------------------------
>
>                 Key: KUDU-3126
>                 URL: https://issues.apache.org/jira/browse/KUDU-3126
>             Project: Kudu
>          Issue Type: Bug
>          Components: api, metrics
>    Affects Versions: 1.11.1
>            Reporter: hutao
>            Priority: Minor
>             Fix For: 1.11.1
>
>         Attachments: 微信截图_20200520185951.png, 微信截图_20200520190129.png
>
>
> I was sifting through the server information of tablet and could give me the 
> results I needed, but when I added the table_name in the "attributes" 
> information, I got an HTTP 400 error.I want to know whether this "attributes" 
> attribute cannot be filtered or whether there is a problem with it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to