KEMBAR78
Modified API Contract | PDF
0% found this document useful (0 votes)
8 views2 pages

Modified API Contract

The document outlines a modified API contract for querying sampled records with specified conditions, duration, pagination, sorting, and filtering. It includes a query structure that retrieves total records along with specific fields such as name, id, value, timestamp, and count. The provided variables detail the conditions and parameters for the query execution.

Uploaded by

Deeksha Tripathy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Modified API Contract

The document outlines a modified API contract for querying sampled records with specified conditions, duration, pagination, sorting, and filtering. It includes a query structure that retrieves total records along with specific fields such as name, id, value, timestamp, and count. The provided variables detail the conditions and parameters for the query execution.

Uploaded by

Deeksha Tripathy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Modified API contract ->

Query
query readAllSampledRecords(
$condition: AllCondition!,
$duration: Duration!,
$pagination: Pagination!,
$sortCondition: sortCriteria,
$filterCondition: filterCriteria
){
readAllSampledRecords(
condition: $condition,
duration: $duration,
pagination: $pagination,
sortCondition: $ sortCondition, # Pass sort criteria
filterCondition: $ filterCondition # Pass filter criteria
){
total,
records {
name,
id,
value,
timestamp,
count
}
}

Variables

{
"condition": {
"name": "database_statements",
"parentService":
"eyduYW1lJzonMTcyLjE3LjAuMjozMzA2JywndGVhbUlEJzonMmY5ODQ0NzYt
ODI0Zi00ODU5LWI1ZDEtZmM0NGUzMGEyMjU5JywndHlwZSc6J0EnfQ==.0"
,
"scope": "Service",
"order": "DES",
"normal": false,
"searchKeyword": "*",
"queryTimeThreshold": "80"
},
"duration": {
"start": "2024-10-29",
"end": "2024-11-28",
"step": "DAY"
},
"pagination": {
"pageNum": 1,
"pageSize": 10,
"needTotal": true
},
"filterCondition": [
{
"fieldName": "field1",
"value": 40,
"operator": "gt"
},
{
"fieldName": "field2",
"value": 20,
"operator": "lte"
}
],
"sortCondition": [
{
"fieldName": "name",
"order": "ASC"
},
{
"fieldName": "address",
"order": "DESC"
}
]
}

You might also like