Skip to content

Commit

Permalink
Regenerate client from commit a7ab9d2 of spec repo (#420)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Jul 31, 2020
1 parent 8756a9f commit 65ca3d5
Show file tree
Hide file tree
Showing 9 changed files with 282 additions and 26 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.2.0",
"regenerated": "2020-07-30 12:30:13.919038",
"spec_repo_commit": "51ff332"
"regenerated": "2020-07-30 15:13:16.740261",
"spec_repo_commit": "a7ab9d2"
},
"v2": {
"apigentools_version": "1.2.0",
"regenerated": "2020-07-30 12:30:18.925289",
"spec_repo_commit": "51ff332"
"regenerated": "2020-07-30 15:13:22.348328",
"spec_repo_commit": "a7ab9d2"
}
}
}
2 changes: 2 additions & 0 deletions api/v1/datadog/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ docs/SyntheticsTestDetailsSubType.md
docs/SyntheticsTestDetailsType.md
docs/SyntheticsTestMonitorStatus.md
docs/SyntheticsTestOptions.md
docs/SyntheticsTestOptionsMonitorOptions.md
docs/SyntheticsTestOptionsRetry.md
docs/SyntheticsTestPauseStatus.md
docs/SyntheticsTestProcessStatus.md
Expand Down Expand Up @@ -730,6 +731,7 @@ model_synthetics_test_details_sub_type.go
model_synthetics_test_details_type.go
model_synthetics_test_monitor_status.go
model_synthetics_test_options.go
model_synthetics_test_options_monitor_options.go
model_synthetics_test_options_retry.go
model_synthetics_test_pause_status.go
model_synthetics_test_process_status.go
Expand Down
1 change: 1 addition & 0 deletions api/v1/datadog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ Class | Method | HTTP request | Description
- [SyntheticsTestDetailsType](docs/SyntheticsTestDetailsType.md)
- [SyntheticsTestMonitorStatus](docs/SyntheticsTestMonitorStatus.md)
- [SyntheticsTestOptions](docs/SyntheticsTestOptions.md)
- [SyntheticsTestOptionsMonitorOptions](docs/SyntheticsTestOptionsMonitorOptions.md)
- [SyntheticsTestOptionsRetry](docs/SyntheticsTestOptionsRetry.md)
- [SyntheticsTestPauseStatus](docs/SyntheticsTestPauseStatus.md)
- [SyntheticsTestProcessStatus](docs/SyntheticsTestProcessStatus.md)
Expand Down
57 changes: 40 additions & 17 deletions api/v1/datadog/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13331,6 +13331,8 @@ components:
name: name
options:
min_location_failed: 5
monitor_options:
renotify_interval: 331
min_failure_duration: 5
allow_insecure: true
device_ids:
Expand All @@ -13339,8 +13341,8 @@ components:
follow_redirects: true
accept_self_signed: true
retry:
count: 2
interval: 7.061401241503109
count: 7
interval: 9.301444243932576
locations:
- locations
- locations
Expand Down Expand Up @@ -13372,11 +13374,11 @@ components:
- allowFailure: true
name: name
params: '{}'
timeout: 9.301444243932576
timeout: 3.616076749251911
- allowFailure: true
name: name
params: '{}'
timeout: 9.301444243932576
timeout: 3.616076749251911
public_id: public_id
tags:
- tags
Expand All @@ -13385,6 +13387,8 @@ components:
name: name
options:
min_location_failed: 5
monitor_options:
renotify_interval: 331
min_failure_duration: 5
allow_insecure: true
device_ids:
Expand All @@ -13393,8 +13397,8 @@ components:
follow_redirects: true
accept_self_signed: true
retry:
count: 2
interval: 7.061401241503109
count: 7
interval: 9.301444243932576
locations:
- locations
- locations
Expand Down Expand Up @@ -13426,11 +13430,11 @@ components:
- allowFailure: true
name: name
params: '{}'
timeout: 9.301444243932576
timeout: 3.616076749251911
- allowFailure: true
name: name
params: '{}'
timeout: 9.301444243932576
timeout: 3.616076749251911
public_id: public_id
tags:
- tags
Expand Down Expand Up @@ -13624,7 +13628,7 @@ components:
allowFailure: true
name: name
params: '{}'
timeout: 9.301444243932576
timeout: 3.616076749251911
properties:
allowFailure:
description: A boolean set to allow this step to fail.
Expand Down Expand Up @@ -13839,6 +13843,8 @@ components:
name: name
options:
min_location_failed: 5
monitor_options:
renotify_interval: 331
min_failure_duration: 5
allow_insecure: true
device_ids:
Expand All @@ -13847,8 +13853,8 @@ components:
follow_redirects: true
accept_self_signed: true
retry:
count: 2
interval: 7.061401241503109
count: 7
interval: 9.301444243932576
locations:
- locations
- locations
Expand Down Expand Up @@ -13880,11 +13886,11 @@ components:
- allowFailure: true
name: name
params: '{}'
timeout: 9.301444243932576
timeout: 3.616076749251911
- allowFailure: true
name: name
params: '{}'
timeout: 9.301444243932576
timeout: 3.616076749251911
public_id: public_id
tags:
- tags
Expand Down Expand Up @@ -13971,6 +13977,8 @@ components:
description: Object describing the extra options for a Synthetic test.
example:
min_location_failed: 5
monitor_options:
renotify_interval: 331
min_failure_duration: 5
allow_insecure: true
device_ids:
Expand All @@ -13979,8 +13987,8 @@ components:
follow_redirects: true
accept_self_signed: true
retry:
count: 2
interval: 7.061401241503109
count: 7
interval: 9.301444243932576
properties:
accept_self_signed:
description: For SSL test, whether or not the test should allow self signed
Expand All @@ -14007,6 +14015,8 @@ components:
an alert.
format: int64
type: integer
monitor_options:
$ref: '#/components/schemas/SyntheticsTestOptions_monitor_options'
retry:
$ref: '#/components/schemas/SyntheticsTestOptions_retry'
tick_every:
Expand Down Expand Up @@ -18342,11 +18352,24 @@ components:
required:
- message
- type
SyntheticsTestOptions_monitor_options:
description: Object containing the options for a Synthetic test as a monitor
(e.g. renotification).
example:
renotify_interval: 331
properties:
renotify_interval:
description: Time interval before renotifying if the test is still failing
(in minutes).
format: int64
maximum: 1440
minimum: 0
type: integer
SyntheticsTestOptions_retry:
description: Object describing the retry strategy to apply to a Synthetic test.
example:
count: 2
interval: 7.061401241503109
count: 7
interval: 9.301444243932576
properties:
count:
description: Number of times a test needs to be retried before marking a
Expand Down
4 changes: 2 additions & 2 deletions api/v1/datadog/docs/SyntheticsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func main() {
},
)

body := datadog.SyntheticsTestDetails{Config: datadog.SyntheticsTestConfig{Assertions: []SyntheticsAssertion{datadog.SyntheticsAssertion{Operator: datadog.SyntheticsAssertionJSONPathOperator{}, Property: "Property_example", Target: datadog.SyntheticsAssertionJSONPathTarget_target{JsonPath: "JsonPath_example", Operator: "Operator_example", TargetValue: 123}, Type: datadog.SyntheticsAssertionType{}}), Request: datadog.SyntheticsTestRequest{BasicAuth: datadog.SyntheticsTestRequest_basicAuth{Password: "Password_example", Username: "Username_example"}, Body: "Body_example", Headers: map[string]string{ "Key" = "Value" }, Host: "Host_example", Method: datadog.HTTPMethod{}, Port: int64(123), Query: 123, Timeout: 123, Url: "Url_example"}, Variables: []SyntheticsBrowserVariable{datadog.SyntheticsBrowserVariable{Example: "Example_example", Id: "Id_example", Name: "Name_example", Pattern: "Pattern_example", Type: datadog.SyntheticsBrowserVariableType{}})}, Locations: []string{"Locations_example"), Message: "Message_example", MonitorId: int64(123), Name: "Name_example", Options: datadog.SyntheticsTestOptions{AcceptSelfSigned: false, AllowInsecure: false, DeviceIds: []SyntheticsDeviceID{datadog.SyntheticsDeviceID{}), FollowRedirects: false, MinFailureDuration: int64(123), MinLocationFailed: int64(123), Retry: datadog.SyntheticsTestOptions_retry{Count: int64(123), Interval: 123}, TickEvery: datadog.SyntheticsTickInterval{}}, PublicId: "PublicId_example", Status: datadog.SyntheticsTestPauseStatus{}, Steps: []SyntheticsStep{datadog.SyntheticsStep{AllowFailure: false, Name: "Name_example", Params: 123, Timeout: 123, Type: datadog.SyntheticsStepType{}}), Subtype: datadog.SyntheticsTestDetailsSubType{}, Tags: []string{"Tags_example"), Type: datadog.SyntheticsTestDetailsType{}} // SyntheticsTestDetails | Details of the test to create.
body := datadog.SyntheticsTestDetails{Config: datadog.SyntheticsTestConfig{Assertions: []SyntheticsAssertion{datadog.SyntheticsAssertion{Operator: datadog.SyntheticsAssertionJSONPathOperator{}, Property: "Property_example", Target: datadog.SyntheticsAssertionJSONPathTarget_target{JsonPath: "JsonPath_example", Operator: "Operator_example", TargetValue: 123}, Type: datadog.SyntheticsAssertionType{}}), Request: datadog.SyntheticsTestRequest{BasicAuth: datadog.SyntheticsTestRequest_basicAuth{Password: "Password_example", Username: "Username_example"}, Body: "Body_example", Headers: map[string]string{ "Key" = "Value" }, Host: "Host_example", Method: datadog.HTTPMethod{}, Port: int64(123), Query: 123, Timeout: 123, Url: "Url_example"}, Variables: []SyntheticsBrowserVariable{datadog.SyntheticsBrowserVariable{Example: "Example_example", Id: "Id_example", Name: "Name_example", Pattern: "Pattern_example", Type: datadog.SyntheticsBrowserVariableType{}})}, Locations: []string{"Locations_example"), Message: "Message_example", MonitorId: int64(123), Name: "Name_example", Options: datadog.SyntheticsTestOptions{AcceptSelfSigned: false, AllowInsecure: false, DeviceIds: []SyntheticsDeviceID{datadog.SyntheticsDeviceID{}), FollowRedirects: false, MinFailureDuration: int64(123), MinLocationFailed: int64(123), MonitorOptions: datadog.SyntheticsTestOptions_monitor_options{RenotifyInterval: int64(123)}, Retry: datadog.SyntheticsTestOptions_retry{Count: int64(123), Interval: 123}, TickEvery: datadog.SyntheticsTickInterval{}}, PublicId: "PublicId_example", Status: datadog.SyntheticsTestPauseStatus{}, Steps: []SyntheticsStep{datadog.SyntheticsStep{AllowFailure: false, Name: "Name_example", Params: 123, Timeout: 123, Type: datadog.SyntheticsStepType{}}), Subtype: datadog.SyntheticsTestDetailsSubType{}, Tags: []string{"Tags_example"), Type: datadog.SyntheticsTestDetailsType{}} // SyntheticsTestDetails | Details of the test to create.

configuration := datadog.NewConfiguration()
api_client := datadog.NewAPIClient(configuration)
Expand Down Expand Up @@ -881,7 +881,7 @@ func main() {
)

publicId := "publicId_example" // string | The public ID of the test to get details from.
body := datadog.SyntheticsTestDetails{Config: datadog.SyntheticsTestConfig{Assertions: []SyntheticsAssertion{datadog.SyntheticsAssertion{Operator: datadog.SyntheticsAssertionJSONPathOperator{}, Property: "Property_example", Target: datadog.SyntheticsAssertionJSONPathTarget_target{JsonPath: "JsonPath_example", Operator: "Operator_example", TargetValue: 123}, Type: datadog.SyntheticsAssertionType{}}), Request: datadog.SyntheticsTestRequest{BasicAuth: datadog.SyntheticsTestRequest_basicAuth{Password: "Password_example", Username: "Username_example"}, Body: "Body_example", Headers: map[string]string{ "Key" = "Value" }, Host: "Host_example", Method: datadog.HTTPMethod{}, Port: int64(123), Query: 123, Timeout: 123, Url: "Url_example"}, Variables: []SyntheticsBrowserVariable{datadog.SyntheticsBrowserVariable{Example: "Example_example", Id: "Id_example", Name: "Name_example", Pattern: "Pattern_example", Type: datadog.SyntheticsBrowserVariableType{}})}, Locations: []string{"Locations_example"), Message: "Message_example", MonitorId: int64(123), Name: "Name_example", Options: datadog.SyntheticsTestOptions{AcceptSelfSigned: false, AllowInsecure: false, DeviceIds: []SyntheticsDeviceID{datadog.SyntheticsDeviceID{}), FollowRedirects: false, MinFailureDuration: int64(123), MinLocationFailed: int64(123), Retry: datadog.SyntheticsTestOptions_retry{Count: int64(123), Interval: 123}, TickEvery: datadog.SyntheticsTickInterval{}}, PublicId: "PublicId_example", Status: datadog.SyntheticsTestPauseStatus{}, Steps: []SyntheticsStep{datadog.SyntheticsStep{AllowFailure: false, Name: "Name_example", Params: 123, Timeout: 123, Type: datadog.SyntheticsStepType{}}), Subtype: datadog.SyntheticsTestDetailsSubType{}, Tags: []string{"Tags_example"), Type: datadog.SyntheticsTestDetailsType{}} // SyntheticsTestDetails | New test details to be saved.
body := datadog.SyntheticsTestDetails{Config: datadog.SyntheticsTestConfig{Assertions: []SyntheticsAssertion{datadog.SyntheticsAssertion{Operator: datadog.SyntheticsAssertionJSONPathOperator{}, Property: "Property_example", Target: datadog.SyntheticsAssertionJSONPathTarget_target{JsonPath: "JsonPath_example", Operator: "Operator_example", TargetValue: 123}, Type: datadog.SyntheticsAssertionType{}}), Request: datadog.SyntheticsTestRequest{BasicAuth: datadog.SyntheticsTestRequest_basicAuth{Password: "Password_example", Username: "Username_example"}, Body: "Body_example", Headers: map[string]string{ "Key" = "Value" }, Host: "Host_example", Method: datadog.HTTPMethod{}, Port: int64(123), Query: 123, Timeout: 123, Url: "Url_example"}, Variables: []SyntheticsBrowserVariable{datadog.SyntheticsBrowserVariable{Example: "Example_example", Id: "Id_example", Name: "Name_example", Pattern: "Pattern_example", Type: datadog.SyntheticsBrowserVariableType{}})}, Locations: []string{"Locations_example"), Message: "Message_example", MonitorId: int64(123), Name: "Name_example", Options: datadog.SyntheticsTestOptions{AcceptSelfSigned: false, AllowInsecure: false, DeviceIds: []SyntheticsDeviceID{datadog.SyntheticsDeviceID{}), FollowRedirects: false, MinFailureDuration: int64(123), MinLocationFailed: int64(123), MonitorOptions: datadog.SyntheticsTestOptions_monitor_options{RenotifyInterval: int64(123)}, Retry: datadog.SyntheticsTestOptions_retry{Count: int64(123), Interval: 123}, TickEvery: datadog.SyntheticsTickInterval{}}, PublicId: "PublicId_example", Status: datadog.SyntheticsTestPauseStatus{}, Steps: []SyntheticsStep{datadog.SyntheticsStep{AllowFailure: false, Name: "Name_example", Params: 123, Timeout: 123, Type: datadog.SyntheticsStepType{}}), Subtype: datadog.SyntheticsTestDetailsSubType{}, Tags: []string{"Tags_example"), Type: datadog.SyntheticsTestDetailsType{}} // SyntheticsTestDetails | New test details to be saved.

configuration := datadog.NewConfiguration()
api_client := datadog.NewAPIClient(configuration)
Expand Down
26 changes: 26 additions & 0 deletions api/v1/datadog/docs/SyntheticsTestOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Name | Type | Description | Notes
**FollowRedirects** | Pointer to **bool** | For API HTTP test, whether or not the test should follow redirects. | [optional]
**MinFailureDuration** | Pointer to **int64** | Minimum amount of time in failure required to trigger an alert. | [optional]
**MinLocationFailed** | Pointer to **int64** | Minimum number of locations in failure required to trigger an alert. | [optional]
**MonitorOptions** | Pointer to [**SyntheticsTestOptionsMonitorOptions**](SyntheticsTestOptions_monitor_options.md) | | [optional]
**Retry** | Pointer to [**SyntheticsTestOptionsRetry**](SyntheticsTestOptions_retry.md) | | [optional]
**TickEvery** | Pointer to [**SyntheticsTickInterval**](SyntheticsTickInterval.md) | | [optional]

Expand Down Expand Up @@ -182,6 +183,31 @@ SetMinLocationFailed sets MinLocationFailed field to given value.

HasMinLocationFailed returns a boolean if a field has been set.

### GetMonitorOptions

`func (o *SyntheticsTestOptions) GetMonitorOptions() SyntheticsTestOptionsMonitorOptions`

GetMonitorOptions returns the MonitorOptions field if non-nil, zero value otherwise.

### GetMonitorOptionsOk

`func (o *SyntheticsTestOptions) GetMonitorOptionsOk() (*SyntheticsTestOptionsMonitorOptions, bool)`

GetMonitorOptionsOk returns a tuple with the MonitorOptions field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetMonitorOptions

`func (o *SyntheticsTestOptions) SetMonitorOptions(v SyntheticsTestOptionsMonitorOptions)`

SetMonitorOptions sets MonitorOptions field to given value.

### HasMonitorOptions

`func (o *SyntheticsTestOptions) HasMonitorOptions() bool`

HasMonitorOptions returns a boolean if a field has been set.

### GetRetry

`func (o *SyntheticsTestOptions) GetRetry() SyntheticsTestOptionsRetry`
Expand Down
56 changes: 56 additions & 0 deletions api/v1/datadog/docs/SyntheticsTestOptionsMonitorOptions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# SyntheticsTestOptionsMonitorOptions

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**RenotifyInterval** | Pointer to **int64** | Time interval before renotifying if the test is still failing (in minutes). | [optional]

## Methods

### NewSyntheticsTestOptionsMonitorOptions

`func NewSyntheticsTestOptionsMonitorOptions() *SyntheticsTestOptionsMonitorOptions`

NewSyntheticsTestOptionsMonitorOptions instantiates a new SyntheticsTestOptionsMonitorOptions object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed

### NewSyntheticsTestOptionsMonitorOptionsWithDefaults

`func NewSyntheticsTestOptionsMonitorOptionsWithDefaults() *SyntheticsTestOptionsMonitorOptions`

NewSyntheticsTestOptionsMonitorOptionsWithDefaults instantiates a new SyntheticsTestOptionsMonitorOptions object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set

### GetRenotifyInterval

`func (o *SyntheticsTestOptionsMonitorOptions) GetRenotifyInterval() int64`

GetRenotifyInterval returns the RenotifyInterval field if non-nil, zero value otherwise.

### GetRenotifyIntervalOk

`func (o *SyntheticsTestOptionsMonitorOptions) GetRenotifyIntervalOk() (*int64, bool)`

GetRenotifyIntervalOk returns a tuple with the RenotifyInterval field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetRenotifyInterval

`func (o *SyntheticsTestOptionsMonitorOptions) SetRenotifyInterval(v int64)`

SetRenotifyInterval sets RenotifyInterval field to given value.

### HasRenotifyInterval

`func (o *SyntheticsTestOptionsMonitorOptions) HasRenotifyInterval() bool`

HasRenotifyInterval returns a boolean if a field has been set.


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


Loading

0 comments on commit 65ca3d5

Please sign in to comment.