Skip to content

Commit

Permalink
Merge pull request #21 from sematext/feature-mutable-apptokens
Browse files Browse the repository at this point in the history
Added app-token handling
  • Loading branch information
hollerloudly authored Oct 21, 2020
2 parents a9a56b7 + d945144 commit 4e22db8
Show file tree
Hide file tree
Showing 60 changed files with 3,766 additions and 555 deletions.
152 changes: 87 additions & 65 deletions README.md

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions docs/AlertNotificationRequest.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# SematextCloud::AlertNotificationRequest

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**default_interval** | **Integer** | | [optional]
**_end** | **String** | End time of interval. Can be expressed as timestamp in milliseconds or UTC date in yyyy-MM-dd HH:mm:ss format | [optional]
**interval** | **String** | | [optional]
**start** | **String** | Start time of interval. Can be expressed as timestamp in milliseconds or UTC date in yyyy-MM-dd HH:mm:ss format | [optional]
| Name | Type | Description | Notes |
| -------------------- | ----------- | --------------------------------------------------------------------------------------------------------------- | ---------- |
| **default_interval** | **Integer** | | [optional] |
| **_end** | **String** | End time of interval. Can be expressed as timestamp in milliseconds or UTC date in yyyy-MM-dd HH:mm:ss format | [optional] |
| **interval** | **String** | | [optional] |
| **start** | **String** | Start time of interval. Can be expressed as timestamp in milliseconds or UTC date in yyyy-MM-dd HH:mm:ss format | [optional] |
22 changes: 11 additions & 11 deletions docs/AlertNotificationsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

All URIs are relative to *https://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**get_alert_notifications_for_app_using_post**](AlertNotificationsApi.md#get_alert_notifications_for_app_using_post) | **POST** /users-web/api/v3/apps/{appId}/notifications/alerts | Get alert notifications for an app
[**get_alert_notifications_for_user_using_post**](AlertNotificationsApi.md#get_alert_notifications_for_user_using_post) | **POST** /users-web/api/v3/notifications/alerts | Get alert notifications for a user
| Method | HTTP request | Description |
| ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ---------------------------------- |
| [**get_alert_notifications_for_app_using_post**](AlertNotificationsApi.md#get_alert_notifications_for_app_using_post) | **POST** /users-web/api/v3/apps/{appId}/notifications/alerts | Get alert notifications for an app |
| [**get_alert_notifications_for_user_using_post**](AlertNotificationsApi.md#get_alert_notifications_for_user_using_post) | **POST** /users-web/api/v3/notifications/alerts | Get alert notifications for a user |


# **get_alert_notifications_for_app_using_post**
Expand Down Expand Up @@ -45,10 +45,10 @@ end

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**app_id** | **Integer**| appId |
**time_interval** | [**AlertNotificationRequest**](AlertNotificationRequest.md)| Time Interval |
| Name | Type | Description | Notes |
| ----------------- | ----------------------------------------------------------- | ------------- | ----- |
| **app_id** | **Integer** | appId |
| **time_interval** | [**AlertNotificationRequest**](AlertNotificationRequest.md) | Time Interval |

### Return type

Expand Down Expand Up @@ -100,9 +100,9 @@ end

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**time_interval** | [**AlertNotificationRequest**](AlertNotificationRequest.md)| Time Interval |
| Name | Type | Description | Notes |
| ----------------- | ----------------------------------------------------------- | ------------- | ----- |
| **time_interval** | [**AlertNotificationRequest**](AlertNotificationRequest.md) | Time Interval |

### Return type

Expand Down
100 changes: 50 additions & 50 deletions docs/AlertRule.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
# SematextCloud::AlertRule

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**account_email** | **String** | | [optional]
**allowed_app_types** | **Array<Integer>** | | [optional]
**analyzing_time** | **String** | | [optional]
**app_display_state** | **String** | | [optional]
**app_id** | **Integer** | | [optional]
**app_name** | **String** | | [optional]
**app_state** | **String** | | [optional]
**app_token** | **String** | | [optional]
**app_type** | **String** | | [optional]
**back_to_normal_needed** | **BOOLEAN** | | [optional]
**chart_key** | **String** | | [optional]
**color** | **String** | | [optional]
**creator_email** | **String** | | [optional]
**default_agg_type** | **String** | | [optional]
**description** | **String** | | [optional]
**disallowed_app_types** | **Array<Integer>** | | [optional]
**enabled** | **BOOLEAN** | | [optional]
**estimate_operation** | **String** | | [optional]
**estimate_value** | **Float** | | [optional]
**filter_values** | **String** | | [optional]
**filter_values_obj** | [**Array<FilterValue>**](FilterValue.md) | | [optional]
**ignore_regular_events_enabled** | **BOOLEAN** | | [optional]
**integrations** | **String** | | [optional]
**last_data_received_date** | **Integer** | | [optional]
**last_sent** | **Integer** | | [optional]
**last_triggered** | **Integer** | | [optional]
**metadata** | **Object** | | [optional]
**metric_key** | **String** | | [optional]
**metric_label** | **String** | | [optional]
**min_delay_between_notifications_in_minutes** | **String** | | [optional]
**name** | **String** | | [optional]
**notification_emails** | **Array<String>** | | [optional]
**notification_integrations** | [**Array<NotificationIntegration>**](NotificationIntegration.md) | | [optional]
**notifications_enabled** | **BOOLEAN** | | [optional]
**query** | **String** | | [optional]
**report_name** | **String** | | [optional]
**rule_key** | **Integer** | | [optional]
**rule_type** | **String** | | [optional]
**runbook** | **String** | | [optional]
**saved_query_id** | **Integer** | | [optional]
**schedule** | [**Array<AlertRuleScheduleWeekdayDto>**](AlertRuleScheduleWeekdayDto.md) | | [optional]
**sematext_service** | **String** | | [optional]
**send_to_email** | **String** | | [optional]
**timezone** | **String** | | [optional]
**use_only_alert_rule_integrations** | **BOOLEAN** | | [optional]
**user_permissions** | [**UserPermissions**](UserPermissions.md) | | [optional]
**value_column_name** | **String** | | [optional]
**value_name** | **String** | | [optional]
| Name | Type | Description | Notes |
| ---------------------------------------------- | ------------------------------------------------------------------------------ | ----------- | ---------- |
| **account_email** | **String** | | [optional] |
| **allowed_app_types** | **Array<Integer>** | | [optional] |
| **analyzing_time** | **String** | | [optional] |
| **app_display_state** | **String** | | [optional] |
| **app_id** | **Integer** | | [optional] |
| **app_name** | **String** | | [optional] |
| **app_state** | **String** | | [optional] |
| **app_token** | **String** | | [optional] |
| **app_type** | **String** | | [optional] |
| **back_to_normal_needed** | **BOOLEAN** | | [optional] |
| **chart_key** | **String** | | [optional] |
| **color** | **String** | | [optional] |
| **creator_email** | **String** | | [optional] |
| **default_agg_type** | **String** | | [optional] |
| **description** | **String** | | [optional] |
| **disallowed_app_types** | **Array<Integer>** | | [optional] |
| **enabled** | **BOOLEAN** | | [optional] |
| **estimate_operation** | **String** | | [optional] |
| **estimate_value** | **Float** | | [optional] |
| **filter_values** | **String** | | [optional] |
| **filter_values_obj** | [**Array<FilterValue>**](FilterValue.md) | | [optional] |
| **ignore_regular_events_enabled** | **BOOLEAN** | | [optional] |
| **integrations** | **String** | | [optional] |
| **last_data_received_date** | **Integer** | | [optional] |
| **last_sent** | **Integer** | | [optional] |
| **last_triggered** | **Integer** | | [optional] |
| **metadata** | **Object** | | [optional] |
| **metric_key** | **String** | | [optional] |
| **metric_label** | **String** | | [optional] |
| **min_delay_between_notifications_in_minutes** | **String** | | [optional] |
| **name** | **String** | | [optional] |
| **notification_emails** | **Array<String>** | | [optional] |
| **notification_integrations** | [**Array<NotificationIntegration>**](NotificationIntegration.md) | | [optional] |
| **notifications_enabled** | **BOOLEAN** | | [optional] |
| **query** | **String** | | [optional] |
| **report_name** | **String** | | [optional] |
| **rule_key** | **Integer** | | [optional] |
| **rule_type** | **String** | | [optional] |
| **runbook** | **String** | | [optional] |
| **saved_query_id** | **Integer** | | [optional] |
| **schedule** | [**Array<AlertRuleScheduleWeekdayDto>**](AlertRuleScheduleWeekdayDto.md) | | [optional] |
| **sematext_service** | **String** | | [optional] |
| **send_to_email** | **String** | | [optional] |
| **timezone** | **String** | | [optional] |
| **use_only_alert_rule_integrations** | **BOOLEAN** | | [optional] |
| **user_permissions** | [**UserPermissions**](UserPermissions.md) | | [optional] |
| **value_column_name** | **String** | | [optional] |
| **value_name** | **String** | | [optional] |
8 changes: 4 additions & 4 deletions docs/AlertRuleScheduleTimeRangeDto.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SematextCloud::AlertRuleScheduleTimeRangeDto

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**_end** | **String** | | [optional]
**start** | **String** | | [optional]
| Name | Type | Description | Notes |
| --------- | ---------- | ----------- | ---------- |
| **_end** | **String** | | [optional] |
| **start** | **String** | | [optional] |
14 changes: 7 additions & 7 deletions docs/AlertRuleScheduleWeekdayDto.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# SematextCloud::AlertRuleScheduleWeekdayDto

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**day** | **String** | | [optional]
**index** | **Integer** | | [optional]
**intervals** | [**Array<AlertRuleScheduleTimeRangeDto>**](AlertRuleScheduleTimeRangeDto.md) | | [optional]
**label** | **String** | | [optional]
**type** | **String** | | [optional]
| Name | Type | Description | Notes |
| ------------- | ---------------------------------------------------------------------------------- | ----------- | ---------- |
| **day** | **String** | | [optional] |
| **index** | **Integer** | | [optional] |
| **intervals** | [**Array<AlertRuleScheduleTimeRangeDto>**](AlertRuleScheduleTimeRangeDto.md) | | [optional] |
| **label** | **String** | | [optional] |
| **type** | **String** | | [optional] |
Loading

0 comments on commit 4e22db8

Please sign in to comment.