mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-06 06:26:51 +00:00
1.3 KiB
1.3 KiB
ApiRequestAssertion
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| name | ApiRequestAssertionName | [optional] | |
| operator | ApiRequestAssertionOperator | [optional] | |
| value | str | The value of the assertion. If name = `status-code`, the status code to assert. If name = `response-body`, the lookup value to assert. | [optional] |
Example
from thousandeyes_sdk.instant_tests.models.api_request_assertion import ApiRequestAssertion
# TODO update the JSON string below
json = "{}"
# create an instance of ApiRequestAssertion from a JSON string
api_request_assertion_instance = ApiRequestAssertion.from_json(json)
# print the JSON string representation of the object
print(ApiRequestAssertion.to_json())
# convert the object into a dict
api_request_assertion_dict = api_request_assertion_instance.to_dict()
# create an instance of ApiRequestAssertion from a dict
api_request_assertion_from_dict = ApiRequestAssertion.from_dict(api_request_assertion_dict)