excel_helper.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:LicenseUsage 作者: Appdynamics 项目源码 文件源码
def __init__(self, account, options, time_range=None):
        self.options = options
        self.skip_tiers = options.get('skip_tiers', False)
        self.granularity = options.get('granularity', 'hourly')
        self.tabs = options.get('tabs')
        self.sheet_per_app = options.get('sheet_per_app', False)
        self.include_non_apm_summary = options.get('include_non_npm_agent_summary', False)
        self.file_name = '%s_%s_%s.xlsx' % (options.get('report_file_prefix', 'license_report'),
            datetime.utcfromtimestamp(time_range.start_time / 1000).strftime("%m-%d-%Y"),
            datetime.utcfromtimestamp((time_range.end_time + 3600000) / 1000).strftime("%m-%d-%Y") )
        self.account = account
        self.applications = account.applications
        self.account_name = account.name
        self.time_range = time_range
        self.workbook = Workbook()
        self.skip_applications = options.get('skip_applications', False)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号