1# -------------------------------------------------------------------------------------------- 2# Copyright (c) Microsoft Corporation. All rights reserved. 3# Licensed under the MIT License. See License.txt in the project root for license information. 4# -------------------------------------------------------------------------------------------- 5# Generated file, DO NOT EDIT 6# Changes may cause incorrect behavior and will be lost if the code is regenerated. 7# -------------------------------------------------------------------------------------------- 8 9from msrest.serialization import Model 10 11 12class EventCounts(Model): 13 """EventCounts. 14 15 :param average_rating: Average rating on the day for extension 16 :type average_rating: int 17 :param buy_count: Number of times the extension was bought in hosted scenario (applies only to VSTS extensions) 18 :type buy_count: int 19 :param connected_buy_count: Number of times the extension was bought in connected scenario (applies only to VSTS extensions) 20 :type connected_buy_count: int 21 :param connected_install_count: Number of times the extension was installed in connected scenario (applies only to VSTS extensions) 22 :type connected_install_count: int 23 :param install_count: Number of times the extension was installed 24 :type install_count: long 25 :param try_count: Number of times the extension was installed as a trial (applies only to VSTS extensions) 26 :type try_count: int 27 :param uninstall_count: Number of times the extension was uninstalled (applies only to VSTS extensions) 28 :type uninstall_count: int 29 :param web_download_count: Number of times the extension was downloaded (applies to VSTS extensions and VSCode marketplace click installs) 30 :type web_download_count: long 31 :param web_page_views: Number of detail page views 32 :type web_page_views: long 33 """ 34 35 _attribute_map = { 36 'average_rating': {'key': 'averageRating', 'type': 'int'}, 37 'buy_count': {'key': 'buyCount', 'type': 'int'}, 38 'connected_buy_count': {'key': 'connectedBuyCount', 'type': 'int'}, 39 'connected_install_count': {'key': 'connectedInstallCount', 'type': 'int'}, 40 'install_count': {'key': 'installCount', 'type': 'long'}, 41 'try_count': {'key': 'tryCount', 'type': 'int'}, 42 'uninstall_count': {'key': 'uninstallCount', 'type': 'int'}, 43 'web_download_count': {'key': 'webDownloadCount', 'type': 'long'}, 44 'web_page_views': {'key': 'webPageViews', 'type': 'long'} 45 } 46 47 def __init__(self, average_rating=None, buy_count=None, connected_buy_count=None, connected_install_count=None, install_count=None, try_count=None, uninstall_count=None, web_download_count=None, web_page_views=None): 48 super(EventCounts, self).__init__() 49 self.average_rating = average_rating 50 self.buy_count = buy_count 51 self.connected_buy_count = connected_buy_count 52 self.connected_install_count = connected_install_count 53 self.install_count = install_count 54 self.try_count = try_count 55 self.uninstall_count = uninstall_count 56 self.web_download_count = web_download_count 57 self.web_page_views = web_page_views 58