Copyright 2015 Axibase Corporation or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the “License”). You may not use this file except in compliance with the License. A copy of the License is located at
https://www.axibase.com/atsd/axibase-apache-2.0.pdf
or in the “license” file accompanying this file. This file is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
connect to ATSD using parameters specified in file (default connection.properties)
Parameters: | file_name – str |
---|
connect to ATSD using specified parameters
Parameters: |
|
---|---|
Returns: | new client instance |
Copyright 2015 Axibase Corporation or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the “License”). You may not use this file except in compliance with the License. A copy of the License is located at
https://www.axibase.com/atsd/axibase-apache-2.0.pdf
or in the “license” file accompanying this file. This file is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Bases: exceptions.Exception
Bases: atsd_client.exceptions.ServerException
Bases: exceptions.Exception
Copyright 2015 Axibase Corporation or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the “License”). You may not use this file except in compliance with the License. A copy of the License is located at
https://www.axibase.com/atsd/axibase-apache-2.0.pdf
or in the “license” file accompanying this file. This file is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Bases: atsd_client.services._Service
Retrieve alert for each query
Parameters: | id – int |
---|---|
Returns: | True if success |
Retrieve history for each query
Parameters: | queries – AlertHistoryQuery |
---|---|
Returns: | get of AlertHistory objects |
Retrieve alert for each query
Parameters: | queries – AlertsQuery |
---|---|
Returns: | get of Alert objects |
Change acknowledgement status of the specified open alerts.
Parameters: | updates – dict |
---|---|
Returns: | True if success |
Bases: atsd_client.services._Service
Send a command or a batch of commands in Network API syntax via /api/v1/command
Parameters: | commands – str | list |
---|---|
Returns: | True if success |
Bases: atsd_client.services._Service
Create an entity with specified fields and tags or replace the fields and tags of an existing entity.
Parameters: | entity – Entity |
---|---|
Returns: | True if success |
Delete the specified entity and delete it as member from any entity groups that it belongs to.
Parameters: | entity – Entity |
---|---|
Returns: | True if success |
Retrieve information about the specified entity including its tags.
Parameters: | entity_name – str entity name |
---|---|
Returns: | Entity |
Retrieve a list of entities matching the specified filter conditions.
Parameters: |
|
---|---|
Returns: | Entity objects |
Bases: atsd_client.services._Service
Add entities as members to the specified entity group.
Parameters: |
|
---|---|
Returns: | True if success |
Create an entity group with specified fields and tags or replace the fields and tags of an existing entity group.
Parameters: | group – EntityGroup |
---|---|
Returns: | True if success |
Delete the specified entity group. Member entities and their data is not affected by this operation.
Parameters: | group – EntityGroup |
---|---|
Returns: | True if success |
Remove specified entities from members of the specified entity group. To delete all entities, submit an empty list [] with set_entities method.
Parameters: |
|
---|---|
Returns: | True if success |
Retrieve information about the specified entity group including its tags. Membership in entity groups with non-empty expression is managed by the server. Adding/removing members of expression-based groups is not supported.
Parameters: | group_name – str entity group name |
---|---|
Returns: | EntityGroup |
Retrieve a list of entities that are members of the specified entity group and are matching the specified filter conditions.
Parameters: |
|
---|---|
Returns: | list of Entity objects |
Retrieve a list of entity groups. Membership in entity groups with non-empty expression is managed by the server. Adding/removing members of expression-based groups is not supported.
Parameters: |
|
---|---|
Returns: | EntityGroup objects |
Set members of the entity group from the specified entity list. All existing members that are not included in the request will be removed from members. If the array in the request is empty, all entities are removed from the group and are replaced with an empty list.
Parameters: |
|
---|---|
Returns: | True if success |
Update fields and tags of the specified entity group. Unlike the replace method, fields and tags that are not specified in the request are left unchanged.
Parameters: | group – EntityGroup |
---|---|
Returns: | True if success |
Bases: atsd_client.services._Service
Retrieve alerts for each query
Parameters: | queries – AlertsQuery |
---|---|
Returns: | list of Alert objects |
Unimplemented
Bases: atsd_client.services._Service
Create a metric with specified fields and tags or replace the fields and tags of an existing metric.
Parameters: | metric – Metric |
---|---|
Returns: | True if success |
Delete the specified metric.
Parameters: | metric_name – Metric |
---|---|
Returns: | True if success |
Retrieve properties and tags for the specified metric.
Parameters: | name – str metric name |
---|---|
Returns: | Metric |
Retrieve a list of metrics matching the specified filter conditions.
Parameters: |
|
---|---|
Returns: | Metric objects |
Bases: atsd_client.services._Service
Delete properties for each query
Parameters: | filters – PropertyDeleteFilter |
---|---|
Returns: | True if success |
Insert given properties
Parameters: | properties – Property |
---|---|
Returns: | True if success |
Retrieves property for each query
Parameters: | queries – PropertiesQuery |
---|---|
Returns: | list of Property objects |
Returns an array of property types for the entity.
Parameters: | entity – Entity |
---|---|
Returns: | returns list of property types for the entity. |
Unimplemented
Bases: atsd_client.services._Service
Cancel the specified sql query.
Parameters: | query_id – str |
---|---|
Returns: | True if success |
Execute sql query.
Parameters: | sql_query – str |
---|---|
Returns: | DataFrame object |
Execute sql query with api parameters.
Parameters: |
|
---|---|
Returns: | Content of the response |
Bases: atsd_client.services._Service
Unimplemented
Insert an array of samples for a given series identified by metric, entity, and series tags
Parameters: | series_objects – Series objects |
---|---|
Returns: | True if success |
Retrieve series for each query
Parameters: | queries – SeriesQuery objects |
---|---|
Returns: | list of Series objects |
Unimplemented