History

History #

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

Package : spaceone.api.statistics.v1



History #

History Methods:

MethodRequestResponse
createCreateHistoryRequestEmpty
listQueryHistoryRequestHistoryInfo
statHistoryStatRequestStruct

create #

Creates a new History. Gets a Schedule as an input and creates a History as an output. You can use this method to manually run a specific Schedule.

POST /statistics/v1/history/create

CreateHistoryRequest

  • schedule_id (string) Required

  • domain_id (string) Required

{
   "schedule_id": "sch-b1d8be347bed",
   "domain_id": "domain-58010aa2e451"
}

list #

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

POST /statistics/v1/history/list

QueryHistoryRequest

  • domain_id (string) Required

  • query (Query)

  • topic (string)

{
   "query": {},
   "domain_id": "domain-58010aa2e451"
}

HistoryInfo

  • results (HistoryValueInfo) Repeated Required

  • total_count (int32) Required

{
   "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



Message #

CreateHistoryRequest #

  • schedule_id (string) Required

  • domain_id (string) Required


HistoryInfo #

  • results (HistoryValueInfo) Repeated Required

  • total_count (int32) Required


HistoryStatRequest #

  • query (StatisticsQuery) Required

  • domain_id (string) Required

  • topic (string)


HistoryValueInfo #

  • topic (string) Required

  • values (Struct) Required

  • domain_id (string) Required

  • created_at (string) Required


QueryHistoryRequest #

  • domain_id (string) Required

  • query (Query)

  • topic (string)


Calendar September 22, 2023
Edit Edit this page