跳到主要内容
版本:v0.5

Get summary queried costs for costs.

Get summary queried costs for costs.

Get summary queried costs for costs.

Request Body required
    endTime date-time
    filters array[]
    sharedOptions object
    idle object
    sharingStrategy string
    item object[]
  • Array [
  • filters array[]
    sharingStrategy string
  • ]
  • management object
    sharingStrategy string
    startTime date-time
Responses

OK


Schema
    averageDailyCost double
    collectedTimeRange object
    firstTime date-time
    lastTime date-time
    connectorCount integer
    cpuCost double
    currency integer
    gpuCost double
    loadBalancerCost double
    pvCost double
    ramCost double
    sharedCost double
    totalCost double
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

Security Scheme
Username
Password
Body required
{
"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"
}
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"
}'