All URIs are relative to https://localhost
| Method | HTTP request | Description |
|---|---|---|
| count_with_predicate2 | GET /api/metrics/count | |
| create_multiple2 | POST /api/metrics | |
| delete2 | DELETE /api/metrics/{id} | |
| delete_all2 | DELETE /api/metrics/all | |
| edit_multiple2 | PUT /api/metrics | |
| get5 | GET /api/metrics/{id} | |
| get6 | GET /api/metrics/name/{name} | |
| get_all2 | GET /api/metrics |
count_with_predicate2()
from __future__ import print_function
import time
import thirdeye_client
from thirdeye_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: oauth
configuration = thirdeye_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = thirdeye_client.MetricApi(thirdeye_client.ApiClient(configuration))
try:
api_instance.count_with_predicate2()
except ApiException as e:
print("Exception when calling MetricApi->count_with_predicate2: %s\n" % e)This endpoint does not need any parameter.
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
create_multiple2(body=body)
from __future__ import print_function
import time
import thirdeye_client
from thirdeye_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: oauth
configuration = thirdeye_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = thirdeye_client.MetricApi(thirdeye_client.ApiClient(configuration))
body = [thirdeye_client.MetricApiModel()] # list[MetricApiModel] | (optional)
try:
api_instance.create_multiple2(body=body)
except ApiException as e:
print("Exception when calling MetricApi->create_multiple2: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | list[MetricApiModel] | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete2(id)
from __future__ import print_function
import time
import thirdeye_client
from thirdeye_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: oauth
configuration = thirdeye_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = thirdeye_client.MetricApi(thirdeye_client.ApiClient(configuration))
id = 789 # int |
try:
api_instance.delete2(id)
except ApiException as e:
print("Exception when calling MetricApi->delete2: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | int |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_all2()
from __future__ import print_function
import time
import thirdeye_client
from thirdeye_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: oauth
configuration = thirdeye_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = thirdeye_client.MetricApi(thirdeye_client.ApiClient(configuration))
try:
api_instance.delete_all2()
except ApiException as e:
print("Exception when calling MetricApi->delete_all2: %s\n" % e)This endpoint does not need any parameter.
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
edit_multiple2(body=body)
from __future__ import print_function
import time
import thirdeye_client
from thirdeye_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: oauth
configuration = thirdeye_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = thirdeye_client.MetricApi(thirdeye_client.ApiClient(configuration))
body = [thirdeye_client.MetricApiModel()] # list[MetricApiModel] | (optional)
try:
api_instance.edit_multiple2(body=body)
except ApiException as e:
print("Exception when calling MetricApi->edit_multiple2: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | list[MetricApiModel] | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get5(id)
from __future__ import print_function
import time
import thirdeye_client
from thirdeye_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: oauth
configuration = thirdeye_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = thirdeye_client.MetricApi(thirdeye_client.ApiClient(configuration))
id = 789 # int |
try:
api_instance.get5(id)
except ApiException as e:
print("Exception when calling MetricApi->get5: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | int |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get6(name)
from __future__ import print_function
import time
import thirdeye_client
from thirdeye_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: oauth
configuration = thirdeye_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = thirdeye_client.MetricApi(thirdeye_client.ApiClient(configuration))
name = 'name_example' # str |
try:
api_instance.get6(name)
except ApiException as e:
print("Exception when calling MetricApi->get6: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| name | str |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_all2()
from __future__ import print_function
import time
import thirdeye_client
from thirdeye_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: oauth
configuration = thirdeye_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = thirdeye_client.MetricApi(thirdeye_client.ApiClient(configuration))
try:
api_instance.get_all2()
except ApiException as e:
print("Exception when calling MetricApi->get_all2: %s\n" % e)This endpoint does not need any parameter.
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]