Object indexing
Object indexing imports objects from your integration into the SquaredUp graph, making them available throughout the platform for searching, scoping, drilldowns, and RollUp-style dashboards.
How object indexing works
Each indexing definition contains one or more import steps. Each step:
- Calls a data stream
- Reads the returned rows
- Maps those rows into graph objects
- Imports those objects into SquaredUp
This allows you to transform almost any external dataset into indexed objects that can participate in the SquaredUp object graph.
Typical objects include: hosts, virtual machines, applications, services, kubernetes resources, users, and many, many more!
Index definition location
Index definitions live in the indexDefinitions/ folder of your plugin.
The first (and often only) file must be named:
default.json
The folder is named indexDefinitions in the plugin structure, but older documentation and internal tooling may still refer to it as importDefinitions.
Example index definition
{
"steps": [
{
"name": "Import vehicles",
"dataStream": {
"name": "vehicles",
"id": "datastream-xxxxxxxxxx" // ID is needed when configuring this via the product UI
"config": {}
},
"timeframe": "none",
"objectMapping": {
"id": "name",
"name": "name",
"type": { "value": "starwars-vehicle" },
"properties": [
"model",
"manufacturer",
"vehicle_class",
{ "vehicleId": "name" },
{ "crewCount": "crew" },
{ "maxSpeed": "max_atmosphering_speed" },
{ "owner": { "value": "Disney" } }
]
}
}
],
"importFrequencyMinutes": 720
}How to configure object indexing
Objects indexing is configured in the Configure Indexing window, accessed by clicking More options
> Configure indexing on the data source overview page.Parameters
Properties
ImportDefinition properties
ImportStepDefinition properties
objectMapping properties
Indexing tips
- Use multiple steps to import different object types (e.g. one step for hosts, one for services)
- Mark data streams used only for indexing with
"visibility": "hidden"so they don't appear in the tile editor - If your object ID comes from a field like
type/id, add an additional property for the raw ID rather than trying to split the string — when an ID is specified asid/sourceId, SquaredUp automatically prefixes it with the source type to ensure uniqueness