The following methods are all relating to data sources
g.get_data_sources()
g.get_cw_namespaces(23)
g.create_data_source(
{
"access" => "proxy",
"name" => "cloudwatch_metrics_us-east-1",
"database" => "metrics_us-east-1",
"type" => "cloudwatch",
"jsonData" => { "defaultRegion" => "us-east-1"}
}
)
g.get_available_data_source_types()
g.update_data_source({
"id": 1,
"orgId": 1,
"name": "test_datasource",
"type": "graphite",
"access": "proxy",
"url": "http://mydatasource.com",
"password": "",
"user": "",
"database": "",
"basicAuth": true,
"basicAuthUser": "basicuser",
"basicAuthPassword": "basicuser",
"isDefault": false,
"jsonData": null
})
g.delete_data_source(23)