Generate the report data indicating usage stats is disabled
()
| 871 | |
| 872 | |
| 873 | def generate_disabled_report_data() -> UsageStatsToReport: |
| 874 | """Generate the report data indicating usage stats is disabled""" |
| 875 | data = UsageStatsToReport( |
| 876 | schema_version=usage_constant.SCHEMA_VERSION, |
| 877 | source=os.getenv( |
| 878 | usage_constant.USAGE_STATS_SOURCE_ENV_VAR, |
| 879 | usage_constant.USAGE_STATS_SOURCE_OSS, |
| 880 | ), |
| 881 | collect_timestamp_ms=int(time.time() * 1000), |
| 882 | ) |
| 883 | return data |
| 884 | |
| 885 | |
| 886 | def generate_report_data( |
nothing calls this directly
no test coverage detected
searching dependent graphs…