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.

Type
Message
{
    "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.

Type
Message
{
    "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.

Type
Message
{
    "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.

Type
Message
{
    "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.

Type
Message
{
    "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.

Type
Message
{
    "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.

Type
Message
{
    "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.

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

stat

POST /monitoring/v1/data-sources/stat

Message

DataSourceInfo

Field
Type
Description

data_source_id

string

name

string

state

  • NONE

  • ENABLED

  • DISABLED

monitoring_type

  • NONE

  • METRIC

  • LOG

provider

string

domain_id

string

created_at

string

DataSourcePluginInfo

Field
Type
Description

plugin_id

string

version

string

upgrade_mode

  • NONE

  • MANUAL

  • AUTO

secret_id

string

provider

string

DataSourceQuery

Field
Type
Required
Description

data_source_id

string

name

string

state

string

monitoring_type

  • NONE

  • METRIC

  • LOG

provider

string

domain_id

string

DataSourceRequest

Field
Type
Required
Description

data_source_id

string

domain_id

string

DataSourceStatQuery

Field
Type
Required
Description

domain_id

string

DataSourcesInfo

Field
Type
Description

total_count

GetDataSourceRequest

Field
Type
Required
Description

data_source_id

string

domain_id

string

only

list of string

RegisterDataSourceRequest

Field
Type
Required
Description

name

string

plugin_info

domain_id

string

UpdateDataSourcePluginRequest

Field
Type
Required
Description

data_source_id

string

version

string

upgrade_mode

  • NONE

  • MANUAL

  • AUTO

domain_id

string

UpdateDataSourceRequest

Field
Type
Required
Description

data_source_id

string

name

string

domain_id

string

Last updated