# AggregateMetric

# AggregateMetric

Artifact:[androidx.health.connect:connect-client](https://developer.android.com/jetpack/androidx/releases/health-connect)  
[View Source](https://cs.android.com/search?q=file:androidx/health/connect/client/aggregate/AggregateMetric.kt+class:androidx.health.connect.client.aggregate.AggregateMetric)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric "View this page in Java")

<br />

```
class AggregateMetric<T : Any>
```

<br />

*** ** * ** ***

Identifier to supported metrics for aggregation.  

|                                                                                         See also                                                                                         |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [contains](https://developer.android.com/reference/kotlin/androidx/health/connect/client/aggregate/AggregationResult#contains(androidx.health.connect.client.aggregate.AggregateMetric)) |   |
| [get](https://developer.android.com/reference/kotlin/androidx/health/connect/client/aggregate/AggregationResult#get(androidx.health.connect.client.aggregate.AggregateMetric))           |   |