All Products
Search
Document Center

Aggregate or filter the collected data of a configuration list

Last Updated: Mar 31, 2021

This topic describes how to refine the collected data.

After a configuration list is created, you can use the aggregate feature to view a summary of the collected data.For example, you collect the application information of 100 instances.You can use the aggregate feature to view the number of each application that is installed on 100 instances.

You can also filter collected data. If you want to refine the results, you can specify application properties. This allows you to obtain the results that match the specified filters. For example, you can obtain the results whose application name is curl.

Limits

  • Before you use the aggregate or filter feature, make sure that a configuration list is created and the collected data is submitted. For more information, see Create a configuration list.

Supported properties and operators

The aggregate feature supports the following list types and the related properties. You can also call the GetInventorySchema operation to query the information.

 [ 
{ "TypeName": "ACS:InstanceInformation", "Version": "1.0", 
"Attributes": [ 
{ "DataType": "STRING", "Name": "PlatformName" 
// The platform name of an instance, for example, aliyun.
}, { "DataType": "STRING",
"Name": "PlatformType" 
// The platform type, for example, linux.
}, 
{ "DataType": "STRING", "Name": "PlatformVersion" 
// The platform version, for example, 2.19.
} ] },
 { "TypeName": "ACS:Application", "Version": "1.0", 
"Attributes": [ { "DataType": "STRING", "Name": "Name" 
// The application name.
}, { "DataType": "STRING", "Name": "Version" 
// The application version.
} ] } ]

The filter feature supports the following operators:

  • Equal: returns the results whose property value is equal to a specified value.

  • NotEqual: returns the results whose property value is not equal to a specified value.

  • BeginWith: returns the results whose property value begins with a specified value.

  • LessThan: returns the results whose property value is less than a specified value.

  • GreaterThan: returns the results whose property value is greater than a specified value.

Aggregate or filter collected data

  1. After a configuration list takes effect, you can view the collected data on the List Details tab.

  2. On the List Overview tab, you can view the aggregate results. By default, this tab shows the statistics of supported list types. These list types include the application name, application version, operating system type, operating system name, operating system version.2

  3. You can also specify a property to filter the results.3

  4. In the Property Name field, select a property name. Select ACS:Application and select Name.23

  5. In the Property Value field, enter curl. The filter results that show the statistics of the curl application appear on the List Overview tab.3

  6. In the Property Name field, select ACS:InstanceInformation and select PlatformName.3

  7. In the Property Value field, enter centos. The filter results that show the statistics of the centos operating system appear on the List Overview tab.3