# FeatureStatsAndAnomalySpec

Defines how to select FeatureStatsAndAnomaly to be populated in response. If set, retrieves FeatureStatsAndAnomaly generated by FeatureMonitors based on this spec.
Fields `statsTimeRange` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/Interval`)`` Optional. If set, return all stats generated between \[startTime, endTime). If latestStatsCount is set, return the most recent count of stats within the statsTimeRange.
`latestStatsCount` `integer` Optional. If set, returns the most recent count of stats. Valid value is \[0, 100\]. If statsTimeRange is set, return most recent count of stats within the statsTimeRange.

| JSON representation |
|---|
| ``` { "statsTimeRange": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/Interval`) }, "latestStatsCount": integer } ``` |