Source code for azure.applicationinsights.models.metrics_post_body_schema_py3

# 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


[docs]class MetricsPostBodySchema(Model): """A metric request. All required parameters must be populated in order to send to Azure. :param id: Required. An identifier for this query. Must be unique within the post body of the request. This identifier will be the 'id' property of the response object representing this query. :type id: str :param parameters: Required. The parameters for a single metrics query :type parameters: ~azure.applicationinsights.models.MetricsPostBodySchemaParameters """ _validation = { 'id': {'required': True}, 'parameters': {'required': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'parameters': {'key': 'parameters', 'type': 'MetricsPostBodySchemaParameters'}, } def __init__(self, *, id: str, parameters, **kwargs) -> None: super(MetricsPostBodySchema, self).__init__(**kwargs) self.id = id self.parameters = parameters