Data Source

A DataSource is a plugin instance collecting `metric` and `log` data from Cloudforet.

Package : spaceone.api.monitoring.v1

DataSource

DataSource Methods:

register

POST /monitoring/v1/data-sources

Registers a DataSource with information of the plugin to use. Information of the plugin includes version, provider, upgrade_mode.

TypeMessage

Request

Response

{
    "name": "datasource-test",
    "plugin_info": {
        "plugin_id": "plugin-123456789012",
        "version": "1.1.4.20220617.135934",
        "options": {},
        "provider": "aws",
        "metadata": {
            "supported_resource_type": [
                "inventory.Server",
                "inventory.CloudService"
            ],
            "required_keys": [
                "data.cloudwatch"
            ],
            "supported_stat": [
                "AVERAGE",
                "MAX",
                "MIN",
                "SUM"
            ]
        },
        "upgrade_mode": "AUTO"
    },
    "tags": {
        "a": "b"
    },
    "domain_id": "domain-123456789012"
}

update

PUT /monitoring/v1/data-source/{data_source_id}

Updates a specific DataSource. You can make changes in DataSource settings, including name and tags.

TypeMessage

Request

Response

{
    "data_source_id": "ds-123456789012",
    "name": "tmp-datasource_test",
    "tags": {
        "b": "c"
    },
    "domain_id": "domain-123456789012"
}

enable

PUT /monitoring/v1/data-source/{data_source_id}/enable

Enables a specific DataSource. By enabling a DataSource, you can communicate with an external cloud service via the plugin.

TypeMessage

Request

Response

{
    "data_source_id": "ds-6167ed6b42f4",
    "domain_id": "domain-123456789012"
}

disable

PUT /monitoring/v1/data-source/{data_source_id}/disable

Disables a specific DataSource. By disabling a DataSource, you can block communication with an external cloud service via the plugin.

TypeMessage

Request

Response

{
    "data_source_id": "ds-6167ed6b42f4",
    "domain_id": "domain-123456789012"
}

deregister

DELETE /monitoring/v1/data-source/{data_source_id}

Deregisters and deletes a specific DataSource. You must specify the data_source_id of the DataSource to deregister.

TypeMessage

Request

Response

{
    "data_source_id": "ds-6167ed6b42f4",
    "domain_id": "domain-123456789012"
}

update_plugin

PUT /monitoring/v1/data-source/{data_source_id}/plugin

Updates the plugin of a specific DataSource. This method resets the plugin data in the DataSource to update the metadata.

{
    "data_source_id": "ds-6167ed6b42f4",
    "version": "1.1.3",
    "options": {},
    "upgrade_mode": "MANUAL",
    "domain_id": "domain-123456789012"
}

verify_plugin

PUT /monitoring/v1/data-source/{data_source_id}/plugin/verify

Verifies the plugin of a specific DataSource. This method validates the plugin data, version and endpoint.

TypeMessage

Request

Response

{
    "data_source_id": "ds-6167ed6b42f4",
    "domain_id": "domain-123456789012"
}

get

GET /monitoring/v1/data-source/{data_source_id}

Gets a specific DataSource. Prints detailed information about the DataSource, including name, state, and plugin_info.

TypeMessage

Request

Response

{
    "data_source_id": "ds-123456789012",
    "domain_id": "domain-123456789012"
}

list

GET /monitoring/v1/data-sources

POST /monitoring/v1/data-sources/search

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

TypeMessage

Request

Response

{
    "query": {},
    "domain_id": "domain-123456789012"
}

stat

POST /monitoring/v1/data-sources/stat

Message

DataSourceInfo

FieldTypeDescription

data_source_id

string

name

string

state

  • NONE

  • ENABLED

  • DISABLED

monitoring_type

  • NONE

  • METRIC

  • LOG

provider

string

capability

plugin_info

tags

domain_id

string

created_at

string

DataSourcePluginInfo

FieldTypeDescription

plugin_id

string

version

string

options

metadata

upgrade_mode

  • NONE

  • MANUAL

  • AUTO

secret_id

string

provider

string

DataSourceQuery

FieldTypeRequiredDescription

query

data_source_id

string

name

string

state

string

monitoring_type

  • NONE

  • METRIC

  • LOG

provider

string

domain_id

string

DataSourceRequest

FieldTypeRequiredDescription

data_source_id

string

domain_id

string

DataSourceStatQuery

FieldTypeRequiredDescription

query

domain_id

string

DataSourcesInfo

FieldTypeDescription

results

total_count

GetDataSourceRequest

FieldTypeRequiredDescription

data_source_id

string

domain_id

string

only

list of string

RegisterDataSourceRequest

FieldTypeRequiredDescription

name

string

plugin_info

tags

domain_id

string

UpdateDataSourcePluginRequest

FieldTypeRequiredDescription

data_source_id

string

version

string

options

upgrade_mode

  • NONE

  • MANUAL

  • AUTO

domain_id

string

UpdateDataSourceRequest

FieldTypeRequiredDescription

data_source_id

string

name

string

tags

domain_id

string

Last updated