Get summary queried costs for costs.
Get summary queried costs for costs.
Get summary queried costs for costs.
application/json
Request Body required
endTime date-time
filters array[]
sharedOptions object
startTime date-time
Responses
- 200
- 400
- 401
- 403
- 404
- 408
- 409
- 415
- 422
- 429
- 500
- 503
- default
OK
application/json
Schema
Example (from schema)
Schema
averageDailyCost double
collectedTimeRange object
connectorCount integer
cpuCost double
currency integer
gpuCost double
loadBalancerCost double
pvCost double
ramCost double
sharedCost double
totalCost double
{
"averageDailyCost": 0,
"collectedTimeRange": {
"firstTime": "2024-03-13T02:09:57.560Z",
"lastTime": "2024-03-13T02:09:57.560Z"
},
"connectorCount": 0,
"cpuCost": 0,
"currency": 0,
"gpuCost": 0,
"loadBalancerCost": 0,
"pvCost": 0,
"ramCost": 0,
"sharedCost": 0,
"totalCost": 0
}
Bad Request
application/json
Schema
Example (from schema)
Schema
message string
status integer
Default value: 400
statusText string
Default value: Bad Request
{
"message": "string",
"status": 400,
"statusText": "Bad Request"
}
Unauthorized
application/json
Schema
Example (from schema)
Schema
message string
status integer
Default value: 401
statusText string
Default value: Unauthorized
{
"message": "string",
"status": 401,
"statusText": "Unauthorized"
}
Forbidden
application/json
Schema
Example (from schema)
Schema
message string
status integer
Default value: 403
statusText string
Default value: Forbidden
{
"message": "string",
"status": 403,
"statusText": "Forbidden"
}
Not Found
application/json
Schema
Example (from schema)
Schema
message string
status integer
Default value: 404
statusText string
Default value: Not Found
{
"message": "string",
"status": 404,
"statusText": "Not Found"
}
Request Timeout
application/json
Schema
Example (from schema)
Schema
message string
status integer
Default value: 408
statusText string
Default value: Request Timeout
{
"message": "string",
"status": 408,
"statusText": "Request Timeout"
}
Conflict
application/json
Schema
Example (from schema)
Schema
message string
status integer
Default value: 409
statusText string
Default value: Conflict
{
"message": "string",
"status": 409,
"statusText": "Conflict"
}
Unsupported Media Type
application/json
Schema
Example (from schema)
Schema
message string
status integer
Default value: 415
statusText string
Default value: Unsupported Media Type
{
"message": "string",
"status": 415,
"statusText": "Unsupported Media Type"
}
Unprocessable Entity
application/json
Schema
Example (from schema)
Schema
message string
status integer
Default value: 422
statusText string
Default value: Unprocessable Entity
{
"message": "string",
"status": 422,
"statusText": "Unprocessable Entity"
}
Too Many Requests
application/json
Schema
Example (from schema)
Schema
message string
status integer
Default value: 429
statusText string
Default value: Too Many Requests
{
"message": "string",
"status": 429,
"statusText": "Too Many Requests"
}
Internal Server Error
application/json
Schema
Example (from schema)
Schema
message string
status integer
Default value: 500
statusText string
Default value: Internal Server Error
{
"message": "string",
"status": 500,
"statusText": "Internal Server Error"
}
Service Unavailable
application/json
Schema
Example (from schema)
Schema
message string
status integer
Default value: 503
statusText string
Default value: Service Unavailable
{
"message": "string",
"status": 503,
"statusText": "Service Unavailable"
}
POST /v1/costs/_/summary-queried-costs
Authorization
name: BasicAuthtype: httpdescription: Basic Authentication, in form of base64(<username>:<password>), the password must be a valid Seal API token.in: headerscheme: basic
Request
Request
curl / cURL
curl -L -X POST 'https://seal-io.github.io/v1/costs/_/summary-queried-costs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"endTime": "2024-03-13T02:09:57.519Z",
"filters": [
[
{
"fieldName": "string",
"includeAll": true,
"operator": "string",
"values": [
"string"
]
}
]
],
"sharedOptions": {
"idle": {
"sharingStrategy": "string"
},
"item": [
{
"filters": [
[
{
"fieldName": "string",
"includeAll": true,
"operator": "string",
"values": [
"string"
]
}
]
],
"sharingStrategy": "string"
}
],
"management": {
"sharingStrategy": "string"
}
},
"startTime": "2024-03-13T02:09:57.519Z"
}'
python / requests
curl -L -X POST 'https://seal-io.github.io/v1/costs/_/summary-queried-costs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"endTime": "2024-03-13T02:09:57.519Z",
"filters": [
[
{
"fieldName": "string",
"includeAll": true,
"operator": "string",
"values": [
"string"
]
}
]
],
"sharedOptions": {
"idle": {
"sharingStrategy": "string"
},
"item": [
{
"filters": [
[
{
"fieldName": "string",
"includeAll": true,
"operator": "string",
"values": [
"string"
]
}
]
],
"sharingStrategy": "string"
}
],
"management": {
"sharingStrategy": "string"
}
},
"startTime": "2024-03-13T02:09:57.519Z"
}'
go / native
curl -L -X POST 'https://seal-io.github.io/v1/costs/_/summary-queried-costs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"endTime": "2024-03-13T02:09:57.519Z",
"filters": [
[
{
"fieldName": "string",
"includeAll": true,
"operator": "string",
"values": [
"string"
]
}
]
],
"sharedOptions": {
"idle": {
"sharingStrategy": "string"
},
"item": [
{
"filters": [
[
{
"fieldName": "string",
"includeAll": true,
"operator": "string",
"values": [
"string"
]
}
]
],
"sharingStrategy": "string"
}
],
"management": {
"sharingStrategy": "string"
}
},
"startTime": "2024-03-13T02:09:57.519Z"
}'
nodejs / axios
curl -L -X POST 'https://seal-io.github.io/v1/costs/_/summary-queried-costs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"endTime": "2024-03-13T02:09:57.519Z",
"filters": [
[
{
"fieldName": "string",
"includeAll": true,
"operator": "string",
"values": [
"string"
]
}
]
],
"sharedOptions": {
"idle": {
"sharingStrategy": "string"
},
"item": [
{
"filters": [
[
{
"fieldName": "string",
"includeAll": true,
"operator": "string",
"values": [
"string"
]
}
]
],
"sharingStrategy": "string"
}
],
"management": {
"sharingStrategy": "string"
}
},
"startTime": "2024-03-13T02:09:57.519Z"
}'
ruby / Net::HTTP
curl -L -X POST 'https://seal-io.github.io/v1/costs/_/summary-queried-costs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"endTime": "2024-03-13T02:09:57.519Z",
"filters": [
[
{
"fieldName": "string",
"includeAll": true,
"operator": "string",
"values": [
"string"
]
}
]
],
"sharedOptions": {
"idle": {
"sharingStrategy": "string"
},
"item": [
{
"filters": [
[
{
"fieldName": "string",
"includeAll": true,
"operator": "string",
"values": [
"string"
]
}
]
],
"sharingStrategy": "string"
}
],
"management": {
"sharingStrategy": "string"
}
},
"startTime": "2024-03-13T02:09:57.519Z"
}'
csharp / RestSharp
curl -L -X POST 'https://seal-io.github.io/v1/costs/_/summary-queried-costs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"endTime": "2024-03-13T02:09:57.519Z",
"filters": [
[
{
"fieldName": "string",
"includeAll": true,
"operator": "string",
"values": [
"string"
]
}
]
],
"sharedOptions": {
"idle": {
"sharingStrategy": "string"
},
"item": [
{
"filters": [
[
{
"fieldName": "string",
"includeAll": true,
"operator": "string",
"values": [
"string"
]
}
]
],
"sharingStrategy": "string"
}
],
"management": {
"sharingStrategy": "string"
}
},
"startTime": "2024-03-13T02:09:57.519Z"
}'
php / cURL
curl -L -X POST 'https://seal-io.github.io/v1/costs/_/summary-queried-costs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"endTime": "2024-03-13T02:09:57.519Z",
"filters": [
[
{
"fieldName": "string",
"includeAll": true,
"operator": "string",
"values": [
"string"
]
}
]
],
"sharedOptions": {
"idle": {
"sharingStrategy": "string"
},
"item": [
{
"filters": [
[
{
"fieldName": "string",
"includeAll": true,
"operator": "string",
"values": [
"string"
]
}
]
],
"sharingStrategy": "string"
}
],
"management": {
"sharingStrategy": "string"
}
},
"startTime": "2024-03-13T02:09:57.519Z"
}'
java / OkHttp
curl -L -X POST 'https://seal-io.github.io/v1/costs/_/summary-queried-costs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"endTime": "2024-03-13T02:09:57.519Z",
"filters": [
[
{
"fieldName": "string",
"includeAll": true,
"operator": "string",
"values": [
"string"
]
}
]
],
"sharedOptions": {
"idle": {
"sharingStrategy": "string"
},
"item": [
{
"filters": [
[
{
"fieldName": "string",
"includeAll": true,
"operator": "string",
"values": [
"string"
]
}
]
],
"sharingStrategy": "string"
}
],
"management": {
"sharingStrategy": "string"
}
},
"startTime": "2024-03-13T02:09:57.519Z"
}'
powershell / RestMethod
curl -L -X POST 'https://seal-io.github.io/v1/costs/_/summary-queried-costs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"endTime": "2024-03-13T02:09:57.519Z",
"filters": [
[
{
"fieldName": "string",
"includeAll": true,
"operator": "string",
"values": [
"string"
]
}
]
],
"sharedOptions": {
"idle": {
"sharingStrategy": "string"
},
"item": [
{
"filters": [
[
{
"fieldName": "string",
"includeAll": true,
"operator": "string",
"values": [
"string"
]
}
]
],
"sharingStrategy": "string"
}
],
"management": {
"sharingStrategy": "string"
}
},
"startTime": "2024-03-13T02:09:57.519Z"
}'