azure.mgmt.advisor.models module¶
-
exception
azure.mgmt.advisor.models.ArmErrorResponseException(deserialize, response, *args)[source]¶ Bases:
msrest.exceptions.HttpOperationErrorServer responsed with exception of type: ‘ArmErrorResponse’.
- Parameters
deserialize – A deserializer
response – Server response to be deserialized.
-
class
azure.mgmt.advisor.models.ArmErrorResponse(*, error=None, **kwargs)[source]¶ Bases:
msrest.serialization.ModelArmErrorResponse.
- Parameters
error (ARMErrorResponseBody) –
-
class
azure.mgmt.advisor.models.ARMErrorResponseBody(*, message: str = None, code: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.ModelARM error response body.
-
class
azure.mgmt.advisor.models.ConfigData(*, exclude: bool = None, low_cpu_threshold=None, digests=None, **kwargs)[source]¶ Bases:
azure.mgmt.advisor.models._models_py3.ResourceThe Advisor configuration data structure.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
- Parameters
exclude (bool) – Exclude the resource from Advisor evaluations. Valid values: False (default) or True.
low_cpu_threshold (str or CpuThreshold) – Minimum percentage threshold for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid values: 5 (default), 10, 15 or 20. Possible values include: ‘5’, ‘10’, ‘15’, ‘20’
digests (list[DigestConfig]) – Advisor digest configuration. Valid only for subscriptions
-
class
azure.mgmt.advisor.models.DigestConfig(*, name: str = None, action_group_resource_id: str = None, frequency: int = None, categories=None, language: str = None, state=None, **kwargs)[source]¶ Bases:
msrest.serialization.ModelAdvisor Digest configuration entity.
- Parameters
name (str) – Name of digest configuration. Value is case-insensitive and must be unique within a subscription.
action_group_resource_id (str) – Action group resource id used by digest.
frequency (int) – Frequency that digest will be triggered, in days. Value must be between 7 and 30 days inclusive.
categories (list[str or Category]) – Categories to send digest for. If categories are not provided, then digest will be sent for all categories.
language (str) – Language for digest content body. Value must be ISO 639-1 code for one of Azure portal supported languages. Otherwise, it will be converted into one. Default value is English (en).
state (str or DigestConfigState) – State of digest configuration. Possible values include: ‘Active’, ‘Disabled’
-
class
azure.mgmt.advisor.models.MetadataEntity(*, id: str = None, type: str = None, name: str = None, display_name: str = None, depends_on=None, applicable_scenarios=None, supported_values=None, **kwargs)[source]¶ Bases:
msrest.serialization.ModelThe metadata entity contract.
- Parameters
id (str) – The resource Id of the metadata entity.
type (str) – The type of the metadata entity.
name (str) – The name of the metadata entity.
display_name (str) – The display name.
depends_on (list[str]) – The list of keys on which this entity depends on.
applicable_scenarios (list[str or Scenario]) – The list of scenarios applicable to this metadata entity.
supported_values (list[MetadataSupportedValueDetail]) – The list of supported values.
-
class
azure.mgmt.advisor.models.MetadataSupportedValueDetail(*, id: str = None, display_name: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.ModelThe metadata supported value detail.
-
class
azure.mgmt.advisor.models.OperationDisplayInfo(*, description: str = None, operation: str = None, provider: str = None, resource: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.ModelThe operation supported by Advisor.
-
class
azure.mgmt.advisor.models.OperationEntity(*, name: str = None, display=None, **kwargs)[source]¶ Bases:
msrest.serialization.ModelThe operation supported by Advisor.
- Parameters
name (str) – Operation name: {provider}/{resource}/{operation}.
display (OperationDisplayInfo) – The operation supported by Advisor.
-
class
azure.mgmt.advisor.models.Resource(**kwargs)[source]¶ Bases:
msrest.serialization.ModelAn Azure resource.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.advisor.models.ResourceMetadata(*, resource_id: str = None, source: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.ModelRecommendation resource metadata.
-
class
azure.mgmt.advisor.models.ResourceRecommendationBase(*, category=None, impact=None, impacted_field: str = None, impacted_value: str = None, last_updated=None, metadata=None, recommendation_type_id: str = None, risk=None, short_description=None, suppression_ids=None, extended_properties=None, resource_metadata=None, **kwargs)[source]¶ Bases:
azure.mgmt.advisor.models._models_py3.ResourceAdvisor Recommendation.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
- Parameters
category (str or Category) – The category of the recommendation. Possible values include: ‘HighAvailability’, ‘Security’, ‘Performance’, ‘Cost’, ‘OperationalExcellence’
impact (str or Impact) – The business impact of the recommendation. Possible values include: ‘High’, ‘Medium’, ‘Low’
impacted_field (str) – The resource type identified by Advisor.
impacted_value (str) – The resource identified by Advisor.
last_updated (datetime) – The most recent time that Advisor checked the validity of the recommendation.
recommendation_type_id (str) – The recommendation-type GUID.
risk (str or Risk) – The potential risk of not implementing the recommendation. Possible values include: ‘Error’, ‘Warning’, ‘None’
short_description (ShortDescription) – A summary of the recommendation.
suppression_ids (list[str]) – The list of snoozed and dismissed rules for the recommendation.
resource_metadata (ResourceMetadata) – Metadata of resource that was assessed
-
class
azure.mgmt.advisor.models.ShortDescription(*, problem: str = None, solution: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.ModelA summary of the recommendation.
-
class
azure.mgmt.advisor.models.SuppressionContract(*, suppression_id: str = None, ttl: str = None, **kwargs)[source]¶ Bases:
azure.mgmt.advisor.models._models_py3.ResourceThe details of the snoozed or dismissed rule; for example, the duration, name, and GUID associated with the rule.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.advisor.models.MetadataEntityPaged(*args, **kwargs)[source]¶ Bases:
msrest.paging.PagedA paging container for iterating over a list of
MetadataEntityobjectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.advisor.models.ConfigDataPaged(*args, **kwargs)[source]¶ Bases:
msrest.paging.PagedA paging container for iterating over a list of
ConfigDataobjectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.advisor.models.ResourceRecommendationBasePaged(*args, **kwargs)[source]¶ Bases:
msrest.paging.PagedA paging container for iterating over a list of
ResourceRecommendationBaseobjectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.advisor.models.OperationEntityPaged(*args, **kwargs)[source]¶ Bases:
msrest.paging.PagedA paging container for iterating over a list of
OperationEntityobjectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.advisor.models.SuppressionContractPaged(*args, **kwargs)[source]¶ Bases:
msrest.paging.PagedA paging container for iterating over a list of
SuppressionContractobjectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.advisor.models.CpuThreshold[source]¶ -
An enumeration.
-
five= '5'¶
-
one_five= '15'¶
-
one_zero= '10'¶
-
two_zero= '20'¶
-
-
class
azure.mgmt.advisor.models.Category[source]¶ -
An enumeration.
-
cost= 'Cost'¶
-
high_availability= 'HighAvailability'¶
-
operational_excellence= 'OperationalExcellence'¶
-
performance= 'Performance'¶
-
security= 'Security'¶
-
-
class
azure.mgmt.advisor.models.DigestConfigState[source]¶ -
An enumeration.
-
active= 'Active'¶
-
disabled= 'Disabled'¶
-