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

Commit de38d4e

Browse files
ustinovVasily V
authored andcommitted
Version 2.3.2 Generated Using Latest Swagger Spec. (#43)
* 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
1 parent 6fea51c commit de38d4e

File tree

103 files changed

+7309
-4640
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+7309
-4640
lines changed

.swagger-codegen/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.3.1

README.md

Lines changed: 85 additions & 80 deletions
Large diffs are not rendered by default.

docs/Alert.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,18 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**last_event_time** | **int** | Start time (in epoch millis) of the last event associated with this alert. | [optional]
7+
**created** | **int** | When this alert was created, in epoch millis | [optional]
8+
**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 |
79
**name** | **str** | |
810
**id** | **str** | | [optional]
911
**target** | **str** | The email address or integration endpoint (such as PagerDuty or webhook) to notify when the alert status changes |
1012
**tags** | [**WFTags**](WFTags.md) | | [optional]
1113
**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]
14+
**event** | [**Event**](Event.md) | | [optional]
15+
**updated** | **int** | When the alert was last updated, in epoch millis | [optional]
16+
**process_rate_minutes** | **int** | The interval between checks for this alert, in minutes. Defaults to 1 minute | [optional]
17+
**last_processed_millis** | **int** | The time when this alert was last checked, in epoch millis | [optional]
18+
**update_user_id** | **str** | The user that last updated this alert | [optional]
1219
**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]
1320
**condition_qb_enabled** | **bool** | Whether the condition query was created using the Query Builder. Default false | [optional]
1421
**display_expression_qb_enabled** | **bool** | Whether the display expression query was created using the Query Builder. Default false | [optional]
@@ -17,40 +24,33 @@ Name | Type | Description | Notes
1724
**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]
1825
**include_obsolete_metrics** | **bool** | Whether to include obsolete metrics in alert query | [optional]
1926
**severity** | **str** | Severity of the alert |
20-
**creator_id** | **str** | | [optional]
21-
**additional_information** | **str** | User-supplied additional explanatory information for this alert. Useful for linking runbooks, mitigations,, etc | [optional]
22-
**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]
23-
**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 |
27+
**last_query_time** | **int** | Last query time of the alert, averaged on hourly basis | [optional]
28+
**notificants** | **list[str]** | A derived field listing the webhook ids used by this alert | [optional]
29+
**alerts_last_day** | **int** | | [optional]
30+
**alerts_last_week** | **int** | | [optional]
31+
**alerts_last_month** | **int** | | [optional]
32+
**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]
33+
**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]
2434
**failing_host_label_pairs** | [**list[SourceLabelPair]**](SourceLabelPair.md) | Failing host/metric pairs | [optional]
35+
**active_maintenance_windows** | **list[str]** | The names of the active maintenance windows that are affecting this alert | [optional]
36+
**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]
37+
**no_data_event** | [**Event**](Event.md) | No data event related to the alert | [optional]
38+
**in_trash** | **bool** | | [optional]
2539
**query_failing** | **bool** | Whether there was an exception when the alert condition last ran | [optional]
40+
**create_user_id** | **str** | | [optional]
41+
**additional_information** | **str** | User-supplied additional explanatory information for this alert. Useful for linking runbooks, mitigations,, etc | [optional]
42+
**creator_id** | **str** | | [optional]
43+
**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]
44+
**updater_id** | **str** | | [optional]
2645
**last_failed_time** | **int** | The time of the last error encountered when running this alert&#39;s condition query, in epoch millis | [optional]
2746
**last_error_message** | **str** | The last error encountered when running this alert&#39;s condition query | [optional]
2847
**metrics_used** | **list[str]** | Number of metrics checked by the alert condition | [optional]
2948
**hosts_used** | **list[str]** | Number of hosts checked by the alert condition | [optional]
30-
**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]
31-
**active_maintenance_windows** | **list[str]** | The names of the active maintenance windows that are affecting this alert | [optional]
32-
**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]
33-
**notificants** | **list[str]** | A derived field listing the webhook ids used by this alert | [optional]
34-
**last_processed_millis** | **int** | The time when this alert was last checked, in epoch millis | [optional]
35-
**process_rate_minutes** | **int** | The interval between checks for this alert, in minutes. Defaults to 1 minute | [optional]
3649
**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]
3750
**last_notification_millis** | **int** | When this alert last caused a notification, in epoch millis | [optional]
3851
**notification_resend_frequency_minutes** | **int** | How often to re-trigger a continually failing alert. If absent or &lt;&#x3D; 0, no retriggering occurs | [optional]
3952
**created_epoch_millis** | **int** | | [optional]
4053
**updated_epoch_millis** | **int** | | [optional]
41-
**event** | [**Event**](Event.md) | | [optional]
42-
**updater_id** | **str** | | [optional]
43-
**created** | **int** | When this alert was created, in epoch millis | [optional]
44-
**updated** | **int** | When the alert was last updated, in epoch millis | [optional]
45-
**update_user_id** | **str** | The user that last updated this alert | [optional]
46-
**last_query_time** | **int** | Last query time of the alert, averaged on hourly basis | [optional]
47-
**alerts_last_day** | **int** | | [optional]
48-
**alerts_last_week** | **int** | | [optional]
49-
**alerts_last_month** | **int** | | [optional]
50-
**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]
51-
**no_data_event** | [**Event**](Event.md) | No data event related to the alert | [optional]
52-
**in_trash** | **bool** | | [optional]
53-
**create_user_id** | **str** | | [optional]
5454
**deleted** | **bool** | | [optional]
5555
**target_info** | [**list[TargetInfo]**](TargetInfo.md) | List of alert targets display information that includes name, id and type. | [optional]
5656
**sort_attr** | **int** | Attribute used for default alert sort that is derived from state and severity | [optional]

docs/AlertApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
100100

101101
# create an instance of the API class
102102
api_instance = wavefront_api_client.AlertApi(wavefront_api_client.ApiClient(configuration))
103-
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)
103+
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)
104104

105105
try:
106106
# Create a specific alert
@@ -114,7 +114,7 @@ except ApiException as e:
114114

115115
Name | Type | Description | Notes
116116
------------- | ------------- | ------------- | -------------
117-
**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]
117+
**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]
118118

119119
### Return type
120120

@@ -813,7 +813,7 @@ configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
813813
# create an instance of the API class
814814
api_instance = wavefront_api_client.AlertApi(wavefront_api_client.ApiClient(configuration))
815815
id = 'id_example' # str |
816-
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)
816+
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)
817817

818818
try:
819819
# Update a specific alert
@@ -828,7 +828,7 @@ except ApiException as e:
828828
Name | Type | Description | Notes
829829
------------- | ------------- | ------------- | -------------
830830
**id** | **str**| |
831-
**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]
831+
**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]
832832

833833
### Return type
834834

docs/AvroBackedStandardizedDTO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**id** | **str** | | [optional]
77
**creator_id** | **str** | | [optional]
8+
**updater_id** | **str** | | [optional]
89
**created_epoch_millis** | **int** | | [optional]
910
**updated_epoch_millis** | **int** | | [optional]
10-
**updater_id** | **str** | | [optional]
1111
**deleted** | **bool** | | [optional]
1212

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

docs/AzureBaseCredentials.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**client_id** | **str** | Client Id for an Azure service account within your project. |
7-
**tenant** | **str** | Tenant Id for an Azure service account within your project. |
87
**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. |
8+
**tenant** | **str** | Tenant Id for an Azure service account within your project. |
99

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

docs/AzureConfiguration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**base_credentials** | [**AzureBaseCredentials**](AzureBaseCredentials.md) | | [optional]
76
**metric_filter_regex** | **str** | A regular expression that a metric name must match (case-insensitively) in order to be ingested | [optional]
7+
**base_credentials** | [**AzureBaseCredentials**](AzureBaseCredentials.md) | | [optional]
88
**category_filter** | **list[str]** | A list of Azure services (such as Microsoft.Compute/virtualMachines, Microsoft.Cache/redis etc) from which to pull metrics. | [optional]
99
**resource_group_filter** | **list[str]** | A list of Azure resource groups from which to pull metrics. | [optional]
1010

docs/Chart.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6+
**units** | **str** | String to label the units of the chart on the Y-axis | [optional]
67
**name** | **str** | Name of the source |
78
**description** | **str** | Description of the chart | [optional]
89
**sources** | [**list[ChartSourceQuery]**](ChartSourceQuery.md) | Query expression to plot on the chart |
910
**include_obsolete_metrics** | **bool** | Whether to show obsolete metrics. Default: false | [optional]
1011
**no_default_events** | **bool** | Whether to hide events related to the sources in the charts produced. Default false (i.e. shows events) | [optional]
11-
**base** | **int** | If the chart has a log-scale Y-axis, the base for the logarithms | [optional]
12-
**units** | **str** | String to label the units of the chart on the Y-axis | [optional]
1312
**chart_attributes** | [**JsonNode**](JsonNode.md) | Experimental field for chart attributes | [optional]
14-
**interpolate_points** | **bool** | Whether to interpolate points in the charts produced. Default: true | [optional]
15-
**chart_settings** | [**ChartSettings**](ChartSettings.md) | | [optional]
1613
**summarization** | **str** | Summarization strategy for the chart. MEAN is default | [optional]
14+
**base** | **int** | If the chart has a log-scale Y-axis, the base for the logarithms | [optional]
15+
**chart_settings** | [**ChartSettings**](ChartSettings.md) | | [optional]
16+
**interpolate_points** | **bool** | Whether to interpolate points in the charts produced. Default: true | [optional]
1717

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

docs/ChartSettings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**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 |
76
**min** | **float** | Min value of Y-axis. Set to null or leave blank for auto | [optional]
7+
**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 |
88
**max** | **float** | Max value of Y-axis. Set to null or leave blank for auto | [optional]
99
**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]
10-
**plain_markdown_content** | **str** | The Markdown content for a Markdown display, in plain text. Use this field instead of &#x60;markdownContent&#x60;. | [optional]
1110
**fixed_legend_enabled** | **bool** | Whether to enable a fixed tabular legend adjacent to the chart | [optional]
1211
**fixed_legend_use_raw_stats** | **bool** | If true, the legend uses non-summarized stats instead of summarized | [optional]
12+
**plain_markdown_content** | **str** | The Markdown content for a Markdown display, in plain text. Use this field instead of &#x60;markdownContent&#x60;. | [optional]
1313
**line_type** | **str** | Plot interpolation type. linear is default | [optional]
1414
**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]
1515
**windowing** | **str** | For the tabular view, whether to use the full time window for the query or the last X minutes | [optional]

0 commit comments

Comments
 (0)