tableau / server-client-python

A Python library for the Tableau Server REST API
https://tableau.github.io/server-client-python/
MIT License
655 stars 420 forks source link

feat: add usage to views.get_by_id #1383

Closed jorwoods closed 3 months ago

jorwoods commented 4 months ago

Closes #1322

Adds the ability to retrieve usage statistics when calling get_by_id for the Views endpoint.

bcantoni commented 4 months ago

@jorwoods I was going to test this, but I think it's missing adding total_views under models/view_item.py?

jorwoods commented 4 months ago

The total_views property already exists under the ViewItem. Getting usage information was already supported by server.views.get, this really just adds it to the get_by_id.