Skip to content

Commit

Permalink
Version 2.3.2 Generated Using Latest Swagger Spec. (#43)
Browse files Browse the repository at this point in the history
* Version 2.3.2 Generated Using Latest Swagger Spec.

Command Used:
```
$ java -jar ~/swagger-codegen-cli-2.3.1.jar generate -i https://mon.wavefront.com/api/v2/swagger.json -l python --git-user-id wavefrontHQ --git-repo-id python-client -D packageName=wavefront_api_client,packageVersion=2.3.2,packageUrl=https://github.com/wavefrontHQ/python-client
```

* Replace 'async' With 'async_req' for Python 3.7

Python 3.7 has added `async` as a reserved word.
Replaced `:%s/\<async\>/async_req/g` as needed.

Fixes #45

* Updated the README.md
  • Loading branch information
ustinov authored and Vasily V committed Aug 15, 2018
1 parent 6fea51c commit de38d4e
Show file tree
Hide file tree
Showing 103 changed files with 7,309 additions and 4,640 deletions.
1 change: 1 addition & 0 deletions .swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.3.1
165 changes: 85 additions & 80 deletions README.md

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions docs/Alert.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**last_event_time** | **int** | Start time (in epoch millis) of the last event associated with this alert. | [optional]
**created** | **int** | When this alert was created, in epoch millis | [optional]
**minutes** | **int** | The number of consecutive minutes that a series matching the condition query must evaluate to \&quot;true\&quot; (non-zero value) before the alert fires |
**name** | **str** | |
**id** | **str** | | [optional]
**target** | **str** | The email address or integration endpoint (such as PagerDuty or webhook) to notify when the alert status changes |
**tags** | [**WFTags**](WFTags.md) | | [optional]
**status** | **list[str]** | Lists the current state of the alert. Can be one or more of: FIRING,SNOOZED, IN_MAINTENANCE, INVALID, NONE, CHECKING, TRASH, NO_DATA | [optional]
**event** | [**Event**](Event.md) | | [optional]
**updated** | **int** | When the alert was last updated, in epoch millis | [optional]
**process_rate_minutes** | **int** | The interval between checks for this alert, in minutes. Defaults to 1 minute | [optional]
**last_processed_millis** | **int** | The time when this alert was last checked, in epoch millis | [optional]
**update_user_id** | **str** | The user that last updated this alert | [optional]
**display_expression** | **str** | A second query whose results are displayed in the alert user interface instead of the condition query. This field is often used to display a version of the condition query with Boolean operators removed so that numerical values are plotted | [optional]
**condition_qb_enabled** | **bool** | Whether the condition query was created using the Query Builder. Default false | [optional]
**display_expression_qb_enabled** | **bool** | Whether the display expression query was created using the Query Builder. Default false | [optional]
Expand All @@ -17,40 +24,33 @@ Name | Type | Description | Notes
**display_expression_qb_serialization** | **str** | The special serialization of the Query Builder that corresponds to the display expression query. Applicable only when displayExpressionQBEnabled is true | [optional]
**include_obsolete_metrics** | **bool** | Whether to include obsolete metrics in alert query | [optional]
**severity** | **str** | Severity of the alert |
**creator_id** | **str** | | [optional]
**additional_information** | **str** | User-supplied additional explanatory information for this alert. Useful for linking runbooks, mitigations,, etc | [optional]
**resolve_after_minutes** | **int** | The number of consecutive minutes that a firing series matching the condition query must evaluate to \&quot;false\&quot; (zero value) before the alert resolves. When unset, this defaults to the same value as \&quot;minutes\&quot; | [optional]
**minutes** | **int** | The number of consecutive minutes that a series matching the condition query must evaluate to \&quot;true\&quot; (non-zero value) before the alert fires |
**last_query_time** | **int** | Last query time of the alert, averaged on hourly basis | [optional]
**notificants** | **list[str]** | A derived field listing the webhook ids used by this alert | [optional]
**alerts_last_day** | **int** | | [optional]
**alerts_last_week** | **int** | | [optional]
**alerts_last_month** | **int** | | [optional]
**snoozed** | **int** | The until which time this alert is snoozed (not checked), in epoch millis. A negative value implies the alert is snoozed indefinitely | [optional]
**in_maintenance_host_label_pairs** | [**list[SourceLabelPair]**](SourceLabelPair.md) | Lists the sources that will not be checked for this alert, due to matching a maintenance window | [optional]
**failing_host_label_pairs** | [**list[SourceLabelPair]**](SourceLabelPair.md) | Failing host/metric pairs | [optional]
**active_maintenance_windows** | **list[str]** | The names of the active maintenance windows that are affecting this alert | [optional]
**prefiring_host_label_pairs** | [**list[SourceLabelPair]**](SourceLabelPair.md) | Lists the series that are starting to fail, defined as failing for greater than 50% of the checks in the window determined by the \&quot;minutes\&quot; parameter | [optional]
**no_data_event** | [**Event**](Event.md) | No data event related to the alert | [optional]
**in_trash** | **bool** | | [optional]
**query_failing** | **bool** | Whether there was an exception when the alert condition last ran | [optional]
**create_user_id** | **str** | | [optional]
**additional_information** | **str** | User-supplied additional explanatory information for this alert. Useful for linking runbooks, mitigations,, etc | [optional]
**creator_id** | **str** | | [optional]
**resolve_after_minutes** | **int** | The number of consecutive minutes that a firing series matching the condition query must evaluate to \&quot;false\&quot; (zero value) before the alert resolves. When unset, this defaults to the same value as \&quot;minutes\&quot; | [optional]
**updater_id** | **str** | | [optional]
**last_failed_time** | **int** | The time of the last error encountered when running this alert&#39;s condition query, in epoch millis | [optional]
**last_error_message** | **str** | The last error encountered when running this alert&#39;s condition query | [optional]
**metrics_used** | **list[str]** | Number of metrics checked by the alert condition | [optional]
**hosts_used** | **list[str]** | Number of hosts checked by the alert condition | [optional]
**in_maintenance_host_label_pairs** | [**list[SourceLabelPair]**](SourceLabelPair.md) | Lists the sources that will not be checked for this alert, due to matching a maintenance window | [optional]
**active_maintenance_windows** | **list[str]** | The names of the active maintenance windows that are affecting this alert | [optional]
**prefiring_host_label_pairs** | [**list[SourceLabelPair]**](SourceLabelPair.md) | Lists the series that are starting to fail, defined as failing for greater than 50% of the checks in the window determined by the \&quot;minutes\&quot; parameter | [optional]
**notificants** | **list[str]** | A derived field listing the webhook ids used by this alert | [optional]
**last_processed_millis** | **int** | The time when this alert was last checked, in epoch millis | [optional]
**process_rate_minutes** | **int** | The interval between checks for this alert, in minutes. Defaults to 1 minute | [optional]
**points_scanned_at_last_query** | **int** | A derived field recording the number of data points scanned when the system last computed this alert&#39;s condition | [optional]
**last_notification_millis** | **int** | When this alert last caused a notification, in epoch millis | [optional]
**notification_resend_frequency_minutes** | **int** | How often to re-trigger a continually failing alert. If absent or &lt;&#x3D; 0, no retriggering occurs | [optional]
**created_epoch_millis** | **int** | | [optional]
**updated_epoch_millis** | **int** | | [optional]
**event** | [**Event**](Event.md) | | [optional]
**updater_id** | **str** | | [optional]
**created** | **int** | When this alert was created, in epoch millis | [optional]
**updated** | **int** | When the alert was last updated, in epoch millis | [optional]
**update_user_id** | **str** | The user that last updated this alert | [optional]
**last_query_time** | **int** | Last query time of the alert, averaged on hourly basis | [optional]
**alerts_last_day** | **int** | | [optional]
**alerts_last_week** | **int** | | [optional]
**alerts_last_month** | **int** | | [optional]
**snoozed** | **int** | The until which time this alert is snoozed (not checked), in epoch millis. A negative value implies the alert is snoozed indefinitely | [optional]
**no_data_event** | [**Event**](Event.md) | No data event related to the alert | [optional]
**in_trash** | **bool** | | [optional]
**create_user_id** | **str** | | [optional]
**deleted** | **bool** | | [optional]
**target_info** | [**list[TargetInfo]**](TargetInfo.md) | List of alert targets display information that includes name, id and type. | [optional]
**sort_attr** | **int** | Attribute used for default alert sort that is derived from state and severity | [optional]
Expand Down
8 changes: 4 additions & 4 deletions docs/AlertApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'

# create an instance of the API class
api_instance = wavefront_api_client.AlertApi(wavefront_api_client.ApiClient(configuration))
body = wavefront_api_client.Alert() # Alert | Example Body: <pre>{ \"name\": \"Alert Name\", \"target\": \"user@example.com\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"additionalInformation\": \"Additional Info\" }</pre> (optional)
body = wavefront_api_client.Alert() # Alert | Example Body: <pre>{ \"name\": \"Alert Name\", \"target\": \"success@simulator.amazonses.com\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"alertTag1\" ] } }</pre> (optional)

try:
# Create a specific alert
Expand All @@ -114,7 +114,7 @@ except ApiException as e:

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**Alert**](Alert.md)| Example Body: &lt;pre&gt;{ \&quot;name\&quot;: \&quot;Alert Name\&quot;, \&quot;target\&quot;: \&quot;user@example.com\&quot;, \&quot;condition\&quot;: \&quot;ts(~sample.cpu.loadavg.1m) &gt; 1\&quot;, \&quot;displayExpression\&quot;: \&quot;ts(~sample.cpu.loadavg.1m)\&quot;, \&quot;minutes\&quot;: 5, \&quot;resolveAfterMinutes\&quot;: 2, \&quot;severity\&quot;: \&quot;INFO\&quot;, \&quot;additionalInformation\&quot;: \&quot;Additional Info\&quot; }&lt;/pre&gt; | [optional]
**body** | [**Alert**](Alert.md)| Example Body: &lt;pre&gt;{ \&quot;name\&quot;: \&quot;Alert Name\&quot;, \&quot;target\&quot;: \&quot;success@simulator.amazonses.com\&quot;, \&quot;condition\&quot;: \&quot;ts(~sample.cpu.loadavg.1m) &gt; 1\&quot;, \&quot;displayExpression\&quot;: \&quot;ts(~sample.cpu.loadavg.1m)\&quot;, \&quot;minutes\&quot;: 5, \&quot;resolveAfterMinutes\&quot;: 2, \&quot;severity\&quot;: \&quot;INFO\&quot;, \&quot;additionalInformation\&quot;: \&quot;Additional Info\&quot;, \&quot;tags\&quot;: { \&quot;customerTags\&quot;: [ \&quot;alertTag1\&quot; ] } }&lt;/pre&gt; | [optional]

### Return type

Expand Down Expand Up @@ -813,7 +813,7 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = wavefront_api_client.AlertApi(wavefront_api_client.ApiClient(configuration))
id = 'id_example' # str |
body = wavefront_api_client.Alert() # Alert | Example Body: <pre>{ \"id\": \"1459375928549\", \"name\": \"Alert Name\", \"target\": \"user@example.com\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"additionalInformation\": \"Additional Info\" }</pre> (optional)
body = wavefront_api_client.Alert() # Alert | Example Body: <pre>{ \"id\": \"1459375928549\", \"name\": \"Alert Name\", \"target\": \"success@simulator.amazonses.com\", \"condition\": \"ts(~sample.cpu.loadavg.1m) > 1\", \"displayExpression\": \"ts(~sample.cpu.loadavg.1m)\", \"minutes\": 5, \"resolveAfterMinutes\": 2, \"severity\": \"INFO\", \"additionalInformation\": \"Additional Info\", \"tags\": { \"customerTags\": [ \"alertTag1\" ] } }</pre> (optional)

try:
# Update a specific alert
Expand All @@ -828,7 +828,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| |
**body** | [**Alert**](Alert.md)| Example Body: &lt;pre&gt;{ \&quot;id\&quot;: \&quot;1459375928549\&quot;, \&quot;name\&quot;: \&quot;Alert Name\&quot;, \&quot;target\&quot;: \&quot;user@example.com\&quot;, \&quot;condition\&quot;: \&quot;ts(~sample.cpu.loadavg.1m) &gt; 1\&quot;, \&quot;displayExpression\&quot;: \&quot;ts(~sample.cpu.loadavg.1m)\&quot;, \&quot;minutes\&quot;: 5, \&quot;resolveAfterMinutes\&quot;: 2, \&quot;severity\&quot;: \&quot;INFO\&quot;, \&quot;additionalInformation\&quot;: \&quot;Additional Info\&quot; }&lt;/pre&gt; | [optional]
**body** | [**Alert**](Alert.md)| Example Body: &lt;pre&gt;{ \&quot;id\&quot;: \&quot;1459375928549\&quot;, \&quot;name\&quot;: \&quot;Alert Name\&quot;, \&quot;target\&quot;: \&quot;success@simulator.amazonses.com\&quot;, \&quot;condition\&quot;: \&quot;ts(~sample.cpu.loadavg.1m) &gt; 1\&quot;, \&quot;displayExpression\&quot;: \&quot;ts(~sample.cpu.loadavg.1m)\&quot;, \&quot;minutes\&quot;: 5, \&quot;resolveAfterMinutes\&quot;: 2, \&quot;severity\&quot;: \&quot;INFO\&quot;, \&quot;additionalInformation\&quot;: \&quot;Additional Info\&quot;, \&quot;tags\&quot;: { \&quot;customerTags\&quot;: [ \&quot;alertTag1\&quot; ] } }&lt;/pre&gt; | [optional]

### Return type

Expand Down
2 changes: 1 addition & 1 deletion docs/AvroBackedStandardizedDTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | | [optional]
**creator_id** | **str** | | [optional]
**updater_id** | **str** | | [optional]
**created_epoch_millis** | **int** | | [optional]
**updated_epoch_millis** | **int** | | [optional]
**updater_id** | **str** | | [optional]
**deleted** | **bool** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/AzureBaseCredentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**client_id** | **str** | Client Id for an Azure service account within your project. |
**tenant** | **str** | Tenant Id for an Azure service account within your project. |
**client_secret** | **str** | Client Secret for an Azure service account within your project. Use &#39;saved_secret&#39; to retain the client secret when updating. |
**tenant** | **str** | Tenant Id for an Azure service account within your project. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/AzureConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**base_credentials** | [**AzureBaseCredentials**](AzureBaseCredentials.md) | | [optional]
**metric_filter_regex** | **str** | A regular expression that a metric name must match (case-insensitively) in order to be ingested | [optional]
**base_credentials** | [**AzureBaseCredentials**](AzureBaseCredentials.md) | | [optional]
**category_filter** | **list[str]** | A list of Azure services (such as Microsoft.Compute/virtualMachines, Microsoft.Cache/redis etc) from which to pull metrics. | [optional]
**resource_group_filter** | **list[str]** | A list of Azure resource groups from which to pull metrics. | [optional]

Expand Down
8 changes: 4 additions & 4 deletions docs/Chart.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**units** | **str** | String to label the units of the chart on the Y-axis | [optional]
**name** | **str** | Name of the source |
**description** | **str** | Description of the chart | [optional]
**sources** | [**list[ChartSourceQuery]**](ChartSourceQuery.md) | Query expression to plot on the chart |
**include_obsolete_metrics** | **bool** | Whether to show obsolete metrics. Default: false | [optional]
**no_default_events** | **bool** | Whether to hide events related to the sources in the charts produced. Default false (i.e. shows events) | [optional]
**base** | **int** | If the chart has a log-scale Y-axis, the base for the logarithms | [optional]
**units** | **str** | String to label the units of the chart on the Y-axis | [optional]
**chart_attributes** | [**JsonNode**](JsonNode.md) | Experimental field for chart attributes | [optional]
**interpolate_points** | **bool** | Whether to interpolate points in the charts produced. Default: true | [optional]
**chart_settings** | [**ChartSettings**](ChartSettings.md) | | [optional]
**summarization** | **str** | Summarization strategy for the chart. MEAN is default | [optional]
**base** | **int** | If the chart has a log-scale Y-axis, the base for the logarithms | [optional]
**chart_settings** | [**ChartSettings**](ChartSettings.md) | | [optional]
**interpolate_points** | **bool** | Whether to interpolate points in the charts produced. Default: true | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
4 changes: 2 additions & 2 deletions docs/ChartSettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | **str** | Chart Type. &#39;line&#39; refers to the Line Plot, &#39;scatter&#39; to the Point Plot, &#39;stacked-area&#39; to the Stacked Area plot, &#39;table&#39; to the Tabular View, &#39;scatterploy-xy&#39; to Scatter Plot, &#39;markdown-widget&#39; to the Markdown display, and &#39;sparkline&#39; to the Single Stat view |
**min** | **float** | Min value of Y-axis. Set to null or leave blank for auto | [optional]
**type** | **str** | Chart Type. &#39;line&#39; refers to the Line Plot, &#39;scatter&#39; to the Point Plot, &#39;stacked-area&#39; to the Stacked Area plot, &#39;table&#39; to the Tabular View, &#39;scatterploy-xy&#39; to Scatter Plot, &#39;markdown-widget&#39; to the Markdown display, and &#39;sparkline&#39; to the Single Stat view |
**max** | **float** | Max value of Y-axis. Set to null or leave blank for auto | [optional]
**expected_data_spacing** | **int** | Threshold (in seconds) for time delta between consecutive points in a series above which a dotted line will replace a solid line in line plots. Default: 60s | [optional]
**plain_markdown_content** | **str** | The Markdown content for a Markdown display, in plain text. Use this field instead of &#x60;markdownContent&#x60;. | [optional]
**fixed_legend_enabled** | **bool** | Whether to enable a fixed tabular legend adjacent to the chart | [optional]
**fixed_legend_use_raw_stats** | **bool** | If true, the legend uses non-summarized stats instead of summarized | [optional]
**plain_markdown_content** | **str** | The Markdown content for a Markdown display, in plain text. Use this field instead of &#x60;markdownContent&#x60;. | [optional]
**line_type** | **str** | Plot interpolation type. linear is default | [optional]
**stack_type** | **str** | Type of stacked chart (applicable only if chart type is stacked). zero (default) means stacked from y&#x3D;0. expand means Normalized from 0 to 1. wiggle means Minimize weighted changes. silhouette means to Center the Stream | [optional]
**windowing** | **str** | For the tabular view, whether to use the full time window for the query or the last X minutes | [optional]
Expand Down
Loading

0 comments on commit de38d4e

Please sign in to comment.