Index stats
curl --request GET \
--url https://api.example.com/api/indexesimport requests
url = "https://api.example.com/api/indexes"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/indexes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/indexes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/indexes"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/indexes")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/indexes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyGraph & analytics
Index stats
Retrieve statistics on property indexes — hits, misses, and query counts.
GET
/
api
/
indexes
Index stats
curl --request GET \
--url https://api.example.com/api/indexesimport requests
url = "https://api.example.com/api/indexes"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/indexes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/indexes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/indexes"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/indexes")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/indexes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyResponse
Returns a map of index name toIndexStatsResponse.
| Field | Type | Description |
|---|---|---|
insert_count | u64 | Number of insertions |
query_count | u64 | Number of queries |
range_query_count | u64 | Number of range queries |
hit_count | u64 | Number of cache hits |
miss_count | u64 | Number of cache misses |
last_accessed | u64 | Last access timestamp |
{
"agent_type_index": {
"insert_count": 5000,
"query_count": 12000,
"range_query_count": 200,
"hit_count": 11500,
"miss_count": 500,
"last_accessed": 1738512000000000000
},
"session_id_index": {
"insert_count": 3000,
"query_count": 8000,
"range_query_count": 100,
"hit_count": 7800,
"miss_count": 200,
"last_accessed": 1738512000000000000
}
}
