Skip to content

Commit

Permalink
chore(docs): Updated ASM Inventory Aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
thehappydinoa committed Oct 2, 2024
1 parent bf37d8a commit d03e58b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage-asm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ Below we show an example of **searching for assets**.
print(assets)
# Aggregate search results by a field
aggregation = i.aggregate(workspaces=["my_workspace"], query="host.services.http.response.body: /.*test.*/")
aggregation = i.aggregate(workspaces=["my_workspace"], query="host.location.country_code: 'US'", aggregation={"term": {"field": "host.autonomous_system.bgp_prefix", "numberOfBuckets": 50}})
print(aggregation)
# Get list of all available fields
Expand Down

0 comments on commit d03e58b

Please sign in to comment.