SpaceONE APIs
Latest Version
Latest Version
  • README
  • Board
    • V1
      • Board
      • Post
  • Config
    • V1
      • Domain Config
      • User Config
  • Core
    • V1
      • Handler
      • Query
      • Server Info
  • Cost Analysis
    • Plugin
      • Cost
      • Data Source
      • Job
    • V1
      • Budget
      • Budget Usage
      • Cost
      • Cost Query Set
      • Custom Widget
      • Data Source
      • Data Source Rule
      • Exchange Rate
      • Job
      • Job Task
      • Public Dashboard
      • Schedule
      • User Dashboard
  • Identity
    • Plugin
      • Auth
    • V1
      • Api Key
      • Authorization
      • Domain
      • Domain Owner
      • Endpoint
      • Policy
      • Project
      • Project Group
      • Provider
      • Role
      • Role Binding
      • Service Account
      • Token
      • User
  • Inventory
    • Plugin
      • Collector
    • V1
      • Change History
      • Cloud Service
      • Cloud Service Type
      • Collector
      • Job
      • Job Task
      • Note
      • Region
      • Resource Group
      • Server
  • Monitoring
    • Plugin
      • Data Source
      • Event
      • Log
      • Metric
      • Webhook
    • V1
      • Alert
      • Data Source
      • Escalation Policy
      • Event
      • Event Rule
      • Log
      • Maintenance Window
      • Metric
      • Note
      • Project Alert Config
      • Webhook
  • Notification
    • Plugin
      • Notification
      • Protocol
    • V1
      • Notification
      • Notification Usage
      • Project Channel
      • Protocol
      • Quota
      • User Channel
  • Plugin
    • V1
      • Plugin
      • Supervisor
  • Repository
    • V1
      • Plugin
      • Policy
      • Repository
      • Schema
  • Sample
    • V1
      • Helloworld
  • Secret
    • V1
      • Secret
      • Secret Group
  • Statistics
    • Plugin
      • Storage
    • V1
      • History
      • Resource
      • Schedule
      • Storage
Powered by GitBook
On this page
  • History
  • create
  • list
  • stat
  • Message
  • CreateHistoryRequest
  • HistoryInfo
  • HistoryStatRequest
  • HistoryValueInfo
  • QueryHistoryRequest

Was this helpful?

  1. Statistics
  2. V1

History

A History is a record of data collection based on a Schedule.

Package : spaceone.api.statistics.v1

History

History Methods:

Method
Request
Response

create

POST /statistics/v1/history

Type
Message

Request

Response

list

GET /statistics/v1/history

POST /statistics/v1/history/query

Gets a list of all Histories. You can use a query to get a filtered list of Histories.

Type
Message

Request

Response

{
    "query": {},
    "domain_id": "domain-58010aa2e451"
}
{
    "results": [
        {
            "topic": "daily_cloud_service_summary",
            "values": {
                "label": "Storage",
                "project_id": "project-f7111a9aa0c6",
                "provider": "azure",
                "value": 32213303296.0,
                "cloud_service_group": "Compute",
                "cloud_service_type": "Disk"
            },
            "domain_id": "domain-58010aa2e451",
            "created_at": "2022-07-18T01:01:57.579Z"
        },
        {
            "topic": "daily_cloud_service_summary",
            "values": {
                "cloud_service_type": "Bucket",
                "cloud_service_group": "CloudStorage",
                "label": "Storage",
                "provider": "google_cloud",
                "project_id": "project-4cd006b4993b",
                "value": 401399880.0
            },
            "domain_id": "domain-58010aa2e451",
            "created_at": "2022-07-18T01:01:57.579Z"
        }
    ],
    "total_count": 2
}

stat

POST /statistics/v1/history/stat

Type
Message

Request

Response

Message

CreateHistoryRequest

Field
Type
Required
Description

schedule_id

string

✔

domain_id

string

✔

HistoryInfo

Field
Type
Description

results

total_count

HistoryStatRequest

Field
Type
Required
Description

query

✔

topic

string

✘

domain_id

string

✔

HistoryValueInfo

Field
Type
Description

topic

string

values

domain_id

string

created_at

string

QueryHistoryRequest

Field
Type
Required
Description

query

✘

topic

string

✘

domain_id

string

✔

PreviousV1NextResource

Last updated 2 years ago

Was this helpful?

google.protobuf.Empty
google.protobuf.Struct
google.protobuf.Empty
google.protobuf.Struct
int32
spaceone.api.core.v1.StatisticsQuery
google.protobuf.Struct
spaceone.api.core.v1.Query
create
CreateHistoryRequest
list
QueryHistoryRequest
HistoryInfo
stat
HistoryStatRequest
CreateHistoryRequest
QueryHistoryRequest
HistoryInfo
HistoryStatRequest
list of HistoryValueInfo