azure.mgmt.applicationinsights.v2022_06_15.models module
- class azure.mgmt.applicationinsights.v2022_06_15.models.HeaderField(*, header_field_name: str | None = None, header_field_value: str | None = None, **kwargs: Any)[source]
Bases:
Model
A header to add to the WebTest.
- class azure.mgmt.applicationinsights.v2022_06_15.models.TagsResource(*, tags: Dict[str, str] | None = None, **kwargs: Any)[source]
Bases:
Model
A container holding only the Tags for a resource, allowing the user to update the tags on a WebTest instance.
- class azure.mgmt.applicationinsights.v2022_06_15.models.WebTest(*, location: str, tags: Dict[str, str] | None = None, kind: str | _models.WebTestKind | None = None, synthetic_monitor_id: str | None = None, web_test_name: str | None = None, description: str | None = None, enabled: bool | None = None, frequency: int = 300, timeout: int = 30, web_test_kind: str | _models.WebTestKind | None = None, retry_enabled: bool | None = None, locations: List[_models.WebTestGeolocation] | None = None, configuration: _models.WebTestPropertiesConfiguration | None = None, request: _models.WebTestPropertiesRequest | None = None, validation_rules: _models.WebTestPropertiesValidationRules | None = None, **kwargs: Any)[source]
Bases:
WebtestsResource
An Application Insights WebTest definition.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
- Variables:
id (str) – Azure resource Id.
name (str) – Azure resource name.
type (str) – Azure resource type.
location (str) – Resource location. Required.
kind (str or WebTestKind) – The kind of WebTest that this web test watches. Choices are ping, multistep and standard. Known values are: “ping”, “multistep”, and “standard”.
synthetic_monitor_id (str) – Unique ID of this WebTest. This is typically the same value as the Name field.
web_test_name (str) – User defined name if this WebTest.
description (str) – User defined description for this WebTest.
enabled (bool) – Is the test actively being monitored.
frequency (int) – Interval in seconds between test runs for this WebTest. Default value is 300.
timeout (int) – Seconds until this WebTest will timeout and fail. Default value is 30.
web_test_kind (str or WebTestKind) – The kind of web test this is, valid choices are ping, multistep and standard. Known values are: “ping”, “multistep”, and “standard”.
retry_enabled (bool) – Allow for retries should this WebTest fail.
locations (list[WebTestGeolocation]) – A list of where to physically run the tests from to give global coverage for accessibility of your application.
configuration (WebTestPropertiesConfiguration) – An XML configuration specification for a WebTest.
provisioning_state (str) – Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.
request (WebTestPropertiesRequest) – The collection of request properties.
validation_rules (WebTestPropertiesValidationRules) – The collection of validation rule properties.
- Keyword Arguments:
location (str) – Resource location. Required.
kind (str or WebTestKind) – The kind of WebTest that this web test watches. Choices are ping, multistep and standard. Known values are: “ping”, “multistep”, and “standard”.
synthetic_monitor_id (str) – Unique ID of this WebTest. This is typically the same value as the Name field.
web_test_name (str) – User defined name if this WebTest.
description (str) – User defined description for this WebTest.
enabled (bool) – Is the test actively being monitored.
frequency (int) – Interval in seconds between test runs for this WebTest. Default value is 300.
timeout (int) – Seconds until this WebTest will timeout and fail. Default value is 30.
web_test_kind (str or WebTestKind) – The kind of web test this is, valid choices are ping, multistep and standard. Known values are: “ping”, “multistep”, and “standard”.
retry_enabled (bool) – Allow for retries should this WebTest fail.
locations (list[WebTestGeolocation]) – A list of where to physically run the tests from to give global coverage for accessibility of your application.
configuration (WebTestPropertiesConfiguration) – An XML configuration specification for a WebTest.
request (WebTestPropertiesRequest) – The collection of request properties.
validation_rules (WebTestPropertiesValidationRules) – The collection of validation rule properties.
- class azure.mgmt.applicationinsights.v2022_06_15.models.WebTestGeolocation(*, location: str | None = None, **kwargs: Any)[source]
Bases:
Model
Geo-physical location to run a WebTest from. You must specify one or more locations for the test to run from.
- class azure.mgmt.applicationinsights.v2022_06_15.models.WebTestKind(*values)[source]
-
The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- MULTISTEP = 'multistep'
- PING = 'ping'
- STANDARD = 'standard'
- class azure.mgmt.applicationinsights.v2022_06_15.models.WebTestListResult(*, value: List[_models.WebTest], next_link: str | None = None, **kwargs: Any)[source]
Bases:
Model
A list of 0 or more Application Insights WebTest definitions.
All required parameters must be populated in order to send to server.
- Variables:
- Keyword Arguments:
- class azure.mgmt.applicationinsights.v2022_06_15.models.WebTestPropertiesConfiguration(*, web_test: str | None = None, **kwargs: Any)[source]
Bases:
Model
An XML configuration specification for a WebTest.
- class azure.mgmt.applicationinsights.v2022_06_15.models.WebTestPropertiesRequest(*, request_url: str | None = None, headers: List[_models.HeaderField] | None = None, http_verb: str | None = None, request_body: str | None = None, parse_dependent_requests: bool | None = None, follow_redirects: bool | None = None, **kwargs: Any)[source]
Bases:
Model
The collection of request properties.
- Variables:
request_url (str) – Url location to test.
headers (list[HeaderField]) – List of headers and their values to add to the WebTest call.
http_verb (str) – Http verb to use for this web test.
request_body (str) – Base64 encoded string body to send with this web test.
parse_dependent_requests (bool) – Parse Dependent request for this WebTest.
follow_redirects (bool) – Follow redirects for this web test.
- Keyword Arguments:
request_url (str) – Url location to test.
headers (list[HeaderField]) – List of headers and their values to add to the WebTest call.
http_verb (str) – Http verb to use for this web test.
request_body (str) – Base64 encoded string body to send with this web test.
parse_dependent_requests (bool) – Parse Dependent request for this WebTest.
follow_redirects (bool) – Follow redirects for this web test.
- class azure.mgmt.applicationinsights.v2022_06_15.models.WebTestPropertiesValidationRules(*, content_validation: _models.WebTestPropertiesValidationRulesContentValidation | None = None, ssl_check: bool | None = None, ssl_cert_remaining_lifetime_check: int | None = None, expected_http_status_code: int | None = None, ignore_http_status_code: bool | None = None, **kwargs: Any)[source]
Bases:
Model
The collection of validation rule properties.
- Variables:
content_validation (WebTestPropertiesValidationRulesContentValidation) – The collection of content validation properties.
ssl_check (bool) – Checks to see if the SSL cert is still valid.
ssl_cert_remaining_lifetime_check (int) – A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
expected_http_status_code (int) – Validate that the WebTest returns the http status code provided.
ignore_http_status_code (bool) – When set, validation will ignore the status code.
- Keyword Arguments:
content_validation (WebTestPropertiesValidationRulesContentValidation) – The collection of content validation properties.
ssl_check (bool) – Checks to see if the SSL cert is still valid.
ssl_cert_remaining_lifetime_check (int) – A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
expected_http_status_code (int) – Validate that the WebTest returns the http status code provided.
ignore_http_status_code (bool) – When set, validation will ignore the status code.
- class azure.mgmt.applicationinsights.v2022_06_15.models.WebTestPropertiesValidationRulesContentValidation(*, content_match: str | None = None, ignore_case: bool | None = None, pass_if_text_found: bool | None = None, **kwargs: Any)[source]
Bases:
Model
The collection of content validation properties.
- Variables:
content_match (str) – Content to look for in the return of the WebTest. Must not be null or empty.
ignore_case (bool) – When set, this value makes the ContentMatch validation case insensitive.
pass_if_text_found (bool) – When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match.
- Keyword Arguments:
content_match (str) – Content to look for in the return of the WebTest. Must not be null or empty.
ignore_case (bool) – When set, this value makes the ContentMatch validation case insensitive.
pass_if_text_found (bool) – When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match.
- class azure.mgmt.applicationinsights.v2022_06_15.models.WebtestsResource(*, location: str, tags: Dict[str, str] | None = None, **kwargs: Any)[source]
Bases:
Model
An azure resource object.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.