Skip to content
Closed
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@
from .operations.components_operations import ComponentsOperations
from .operations.web_tests_operations import WebTestsOperations
from .operations.export_configurations_operations import ExportConfigurationsOperations
from .operations.proactive_detection_configurations_operations import ProactiveDetectionConfigurationsOperations
from .operations.component_current_billing_features_operations import ComponentCurrentBillingFeaturesOperations
from .operations.component_quota_status_operations import ComponentQuotaStatusOperations
from .operations.component_feature_capabilities_operations import ComponentFeatureCapabilitiesOperations
from .operations.component_available_features_operations import ComponentAvailableFeaturesOperations
from .operations.api_keys_operations import APIKeysOperations
from .operations.annotations_operations import AnnotationsOperations
from .operations.work_item_configurations_operations import WorkItemConfigurationsOperations
from . import models


Expand Down Expand Up @@ -69,12 +74,22 @@ class ApplicationInsightsManagementClient(object):
:vartype web_tests: azure.mgmt.applicationinsights.operations.WebTestsOperations
:ivar export_configurations: ExportConfigurations operations
:vartype export_configurations: azure.mgmt.applicationinsights.operations.ExportConfigurationsOperations
:ivar proactive_detection_configurations: ProactiveDetectionConfigurations operations
:vartype proactive_detection_configurations: azure.mgmt.applicationinsights.operations.ProactiveDetectionConfigurationsOperations
:ivar component_current_billing_features: ComponentCurrentBillingFeatures operations
:vartype component_current_billing_features: azure.mgmt.applicationinsights.operations.ComponentCurrentBillingFeaturesOperations
:ivar component_quota_status: ComponentQuotaStatus operations
:vartype component_quota_status: azure.mgmt.applicationinsights.operations.ComponentQuotaStatusOperations
:ivar component_feature_capabilities: ComponentFeatureCapabilities operations
:vartype component_feature_capabilities: azure.mgmt.applicationinsights.operations.ComponentFeatureCapabilitiesOperations
:ivar component_available_features: ComponentAvailableFeatures operations
:vartype component_available_features: azure.mgmt.applicationinsights.operations.ComponentAvailableFeaturesOperations
:ivar api_keys: APIKeys operations
:vartype api_keys: azure.mgmt.applicationinsights.operations.APIKeysOperations
:ivar annotations: Annotations operations
:vartype annotations: azure.mgmt.applicationinsights.operations.AnnotationsOperations
:ivar work_item_configurations: WorkItemConfigurations operations
:vartype work_item_configurations: azure.mgmt.applicationinsights.operations.WorkItemConfigurationsOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand Down Expand Up @@ -103,9 +118,19 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.export_configurations = ExportConfigurationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.proactive_detection_configurations = ProactiveDetectionConfigurationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.component_current_billing_features = ComponentCurrentBillingFeaturesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.component_quota_status = ComponentQuotaStatusOperations(
self._client, self.config, self._serialize, self._deserialize)
self.component_feature_capabilities = ComponentFeatureCapabilitiesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.component_available_features = ComponentAvailableFeaturesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.api_keys = APIKeysOperations(
self._client, self.config, self._serialize, self._deserialize)
self.annotations = AnnotationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.work_item_configurations = WorkItemConfigurationsOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,23 @@
from .web_test import WebTest
from .application_insights_component_export_request import ApplicationInsightsComponentExportRequest
from .application_insights_component_export_configuration import ApplicationInsightsComponentExportConfiguration
from .application_insights_component_proactive_detection_configuration_rule_definitions import ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions
from .application_insights_component_proactive_detection_configuration import ApplicationInsightsComponentProactiveDetectionConfiguration
from .application_insights_component_data_volume_cap import ApplicationInsightsComponentDataVolumeCap
from .application_insights_component_billing_features import ApplicationInsightsComponentBillingFeatures
from .application_insights_component_quota_status import ApplicationInsightsComponentQuotaStatus
from .application_insights_component_feature_capabilities import ApplicationInsightsComponentFeatureCapabilities
from .application_insights_component_feature_capability import ApplicationInsightsComponentFeatureCapability
from .application_insights_component_feature import ApplicationInsightsComponentFeature
from .application_insights_component_available_features import ApplicationInsightsComponentAvailableFeatures
from .api_key_request import APIKeyRequest
from .application_insights_component_api_key import ApplicationInsightsComponentAPIKey
from .annotation import Annotation
from .inner_error import InnerError
from .annotation_create_error import AnnotationCreateError
from .work_item_configuration import WorkItemConfiguration
from .work_item_create_configuration import WorkItemCreateConfiguration
from .work_item_configuration_error import WorkItemConfigurationError
from .operation_paged import OperationPaged
from .application_insights_component_paged import ApplicationInsightsComponentPaged
from .web_test_paged import WebTestPaged
Expand All @@ -48,11 +60,23 @@
'WebTest',
'ApplicationInsightsComponentExportRequest',
'ApplicationInsightsComponentExportConfiguration',
'ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions',
'ApplicationInsightsComponentProactiveDetectionConfiguration',
'ApplicationInsightsComponentDataVolumeCap',
'ApplicationInsightsComponentBillingFeatures',
'ApplicationInsightsComponentQuotaStatus',
'ApplicationInsightsComponentFeatureCapabilities',
'ApplicationInsightsComponentFeatureCapability',
'ApplicationInsightsComponentFeature',
'ApplicationInsightsComponentAvailableFeatures',
'APIKeyRequest',
'ApplicationInsightsComponentAPIKey',
'Annotation',
'InnerError',
'AnnotationCreateError',
'WorkItemConfiguration',
'WorkItemCreateConfiguration',
'WorkItemConfigurationError',
'OperationPaged',
'ApplicationInsightsComponentPaged',
'WebTestPaged',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class Annotation(Model):
"""Annotation associated with an application insights resource.

:param annotation_name: Name of annotation
:type annotation_name: str
:param category: Category of annotation, free form
:type category: str
:param event_time: Time when event occurred
:type event_time: datetime
:param id: Unique Id for annotation
:type id: str
:param properties: Serialized JSON object for detailed properties
:type properties: str
:param related_annotation: Related parent annotation if any. Default
value: "null" .
:type related_annotation: str
"""

_attribute_map = {
'annotation_name': {'key': 'AnnotationName', 'type': 'str'},
'category': {'key': 'Category', 'type': 'str'},
'event_time': {'key': 'EventTime', 'type': 'iso-8601'},
'id': {'key': 'Id', 'type': 'str'},
'properties': {'key': 'Properties', 'type': 'str'},
'related_annotation': {'key': 'RelatedAnnotation', 'type': 'str'},
}

def __init__(self, annotation_name=None, category=None, event_time=None, id=None, properties=None, related_annotation="null"):
super(Annotation, self).__init__()
self.annotation_name = annotation_name
self.category = category
self.event_time = event_time
self.id = id
self.properties = properties
self.related_annotation = related_annotation
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class AnnotationCreateError(Model):
"""Error associated with trying to create annotation with Id that already
exist.

:param code: Error detail code and explanation
:type code: str
:param message: Error message
:type message: str
:param innererror:
:type innererror: ~azure.mgmt.applicationinsights.models.InnerError
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'innererror': {'key': 'innererror', 'type': 'InnerError'},
}

def __init__(self, code=None, message=None, innererror=None):
super(AnnotationCreateError, self).__init__()
self.code = code
self.message = message
self.innererror = innererror
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class ApplicationInsightsComponentAvailableFeatures(Model):
"""An Application Insights component available features.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar result: A list of Application Insigths component feature.
:vartype result:
list[~azure.mgmt.applicationinsights.models.ApplicationInsightsComponentFeature]
"""

_validation = {
'result': {'readonly': True},
}

_attribute_map = {
'result': {'key': 'Result', 'type': '[ApplicationInsightsComponentFeature]'},
}

def __init__(self):
super(ApplicationInsightsComponentAvailableFeatures, self).__init__()
self.result = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class ApplicationInsightsComponentFeature(Model):
"""An Application Insights component daily data volume cap status.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar feature_name: The pricing feature name.
:vartype feature_name: str
:ivar meter_id: The meter id used for the feature.
:vartype meter_id: str
:ivar meter_rate_frequency: The meter meter rate for the feature's meter.
:vartype meter_rate_frequency: str
:ivar resouce_id: Reserved, not used now.
:vartype resouce_id: str
:ivar is_hidden: Reserved, not used now.
:vartype is_hidden: bool
:ivar capabilities: A list of Application Insigths component feature
capability.
:vartype capabilities:
list[~azure.mgmt.applicationinsights.models.ApplicationInsightsComponentFeatureCapability]
:ivar title: Desplay name of the feature.
:vartype title: str
:ivar is_main_feature: Whether can apply addon feature on to it.
:vartype is_main_feature: bool
:ivar supported_addon_features: The add on features on main feature.
:vartype supported_addon_features: str
"""

_validation = {
'feature_name': {'readonly': True},
'meter_id': {'readonly': True},
'meter_rate_frequency': {'readonly': True},
'resouce_id': {'readonly': True},
'is_hidden': {'readonly': True},
'capabilities': {'readonly': True},
'title': {'readonly': True},
'is_main_feature': {'readonly': True},
'supported_addon_features': {'readonly': True},
}

_attribute_map = {
'feature_name': {'key': 'FeatureName', 'type': 'str'},
'meter_id': {'key': 'MeterId', 'type': 'str'},
'meter_rate_frequency': {'key': 'MeterRateFrequency', 'type': 'str'},
'resouce_id': {'key': 'ResouceId', 'type': 'str'},
'is_hidden': {'key': 'IsHidden', 'type': 'bool'},
'capabilities': {'key': 'Capabilities', 'type': '[ApplicationInsightsComponentFeatureCapability]'},
'title': {'key': 'Title', 'type': 'str'},
'is_main_feature': {'key': 'IsMainFeature', 'type': 'bool'},
'supported_addon_features': {'key': 'SupportedAddonFeatures', 'type': 'str'},
}

def __init__(self):
super(ApplicationInsightsComponentFeature, self).__init__()
self.feature_name = None
self.meter_id = None
self.meter_rate_frequency = None
self.resouce_id = None
self.is_hidden = None
self.capabilities = None
self.title = None
self.is_main_feature = None
self.supported_addon_features = None
Loading