Skip to content
This repository was archived by the owner on Oct 11, 2026. It is now read-only.

Latest commit

 

History

History
508 lines (347 loc) · 13.5 KB

EventApi.md

File metadata and controls

508 lines (347 loc) · 13.5 KB

thirdeye_client.EventApi

All URIs are relative to https://localhost

Method HTTP request Description
count_with_predicate9 GET /api/events/count
create_multiple9 POST /api/events
delete9 DELETE /api/events/{id}
delete_all9 DELETE /api/events/all
edit_multiple9 PUT /api/events
get19 GET /api/events/{id}
get20 GET /api/events/name/{name}
get_all9 GET /api/events
load_holidays POST /api/events/create-from-anomaly
load_holidays1 POST /api/events/holidays/load

count_with_predicate9

count_with_predicate9()

Example

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.EventApi(thirdeye_client.ApiClient(configuration))

try:
    api_instance.count_with_predicate9()
except ApiException as e:
    print("Exception when calling EventApi->count_with_predicate9: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

create_multiple9

create_multiple9(body=body)

Example

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.EventApi(thirdeye_client.ApiClient(configuration))
body = [thirdeye_client.EventApiModel()] # list[EventApiModel] |  (optional)

try:
    api_instance.create_multiple9(body=body)
except ApiException as e:
    print("Exception when calling EventApi->create_multiple9: %s\n" % e)

Parameters

Name Type Description Notes
body list[EventApiModel] [optional]

Return type

void (empty response body)

Authorization

oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete9

delete9(id)

Example

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.EventApi(thirdeye_client.ApiClient(configuration))
id = 789 # int | 

try:
    api_instance.delete9(id)
except ApiException as e:
    print("Exception when calling EventApi->delete9: %s\n" % e)

Parameters

Name Type Description Notes
id int

Return type

void (empty response body)

Authorization

oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete_all9

delete_all9()

Example

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.EventApi(thirdeye_client.ApiClient(configuration))

try:
    api_instance.delete_all9()
except ApiException as e:
    print("Exception when calling EventApi->delete_all9: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

edit_multiple9

edit_multiple9(body=body)

Example

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.EventApi(thirdeye_client.ApiClient(configuration))
body = [thirdeye_client.EventApiModel()] # list[EventApiModel] |  (optional)

try:
    api_instance.edit_multiple9(body=body)
except ApiException as e:
    print("Exception when calling EventApi->edit_multiple9: %s\n" % e)

Parameters

Name Type Description Notes
body list[EventApiModel] [optional]

Return type

void (empty response body)

Authorization

oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get19

get19(id)

Example

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.EventApi(thirdeye_client.ApiClient(configuration))
id = 789 # int | 

try:
    api_instance.get19(id)
except ApiException as e:
    print("Exception when calling EventApi->get19: %s\n" % e)

Parameters

Name Type Description Notes
id int

Return type

void (empty response body)

Authorization

oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get20

get20(name)

Example

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.EventApi(thirdeye_client.ApiClient(configuration))
name = 'name_example' # str | 

try:
    api_instance.get20(name)
except ApiException as e:
    print("Exception when calling EventApi->get20: %s\n" % e)

Parameters

Name Type Description Notes
name str

Return type

void (empty response body)

Authorization

oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_all9

get_all9()

Example

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.EventApi(thirdeye_client.ApiClient(configuration))

try:
    api_instance.get_all9()
except ApiException as e:
    print("Exception when calling EventApi->get_all9: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

load_holidays

load_holidays(anomaly_id=anomaly_id)

Example

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.EventApi(thirdeye_client.ApiClient(configuration))
anomaly_id = 789 # int |  (optional)

try:
    api_instance.load_holidays(anomaly_id=anomaly_id)
except ApiException as e:
    print("Exception when calling EventApi->load_holidays: %s\n" % e)

Parameters

Name Type Description Notes
anomaly_id int [optional]

Return type

void (empty response body)

Authorization

oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

load_holidays1

load_holidays1(start_time=start_time, end_time=end_time)

Example

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.EventApi(thirdeye_client.ApiClient(configuration))
start_time = 789 # int |  (optional)
end_time = 789 # int |  (optional)

try:
    api_instance.load_holidays1(start_time=start_time, end_time=end_time)
except ApiException as e:
    print("Exception when calling EventApi->load_holidays1: %s\n" % e)

Parameters

Name Type Description Notes
start_time int [optional]
end_time int [optional]

Return type

void (empty response body)

Authorization

oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]