telemetry
最后更新
hubai_sdk.utils.telemetry类
ApiKeySource
属性
ARGUMENT
ENVIRONMENT
STORED_CREDENTIALS
CommandMetadata
属性
command_group
command_name
CommandName
属性
CONVERT
INSTANCE_CONFIG
INSTANCE_CREATE
INSTANCE_DELETE
INSTANCE_DOWNLOAD
INSTANCE_FILES
INSTANCE_INFO
INSTANCE_LIST
INSTANCE_UPLOAD
LOGIN
LOGOUT
MODEL_CREATE
MODEL_DELETE
MODEL_INFO
MODEL_LIST
MODEL_UPDATE
VARIANT_CREATE
VARIANT_DELETE
VARIANT_INFO
VARIANT_LIST
ConfigSource
属性
DIRECT_MODEL_INPUT
NN_ARCHIVE
YAML_CONFIG
ConversionFlowStep
属性
CONFIGURATION_RESOLVED
RESULT_RECORDED
ConversionPhase
属性
CONFIGURATION
DOWNLOAD
EXPORT
RESOURCE_SETUP
UPLOAD
FailureReason
属性
API_ERROR
AUTH_ERROR
CONFIG_ERROR
CONFLICT
DOWNLOAD_ERROR
EXPORT_ERROR
NETWORK_ERROR
NOT_FOUND
SERVER_ERROR
TIMEOUT
UNKNOWN
UPLOAD_ERROR
USER_INTERRUPT
VALIDATION_ERROR
IdentifierType
属性
SLUG
UNKNOWN
UUID
InvocationSurface
属性
CLI
PYTHON_API
OperationName
属性
CLIENT_INITIALIZE
CONVERT
INSTANCE_CONFIG_GET
INSTANCE_CREATE
INSTANCE_DELETE
INSTANCE_DOWNLOAD
INSTANCE_FILES_LIST
INSTANCE_GET
INSTANCE_UPLOAD
INSTANCES_LIST
MODEL_CREATE
MODEL_DELETE
MODEL_GET
MODEL_UPDATE
MODELS_LIST
VARIANT_CREATE
VARIANT_DELETE
VARIANT_GET
VARIANTS_LIST
OperationTelemetrySpec
属性
identifier_param
operation_group
operation_name
success_builder
success_event
target_resource
QuantizationInputType
属性
CUSTOM_ZIP
DATASET_ID
NONE
PREDEFINED_DOMAIN
TargetResource
属性
CONVERSION
INSTANCE
MODEL
VARIANT
TelemetryGroup
属性
AUTH
CLIENT
CONVERSION
INSTANCES
MODELS
VARIANTS
TelemetryResult
属性
FAILED
INTERRUPTED
SUCCESS
VisibilityFilterValue
属性
ALL
PRIVATE
PUBLIC
VisibilityValue
属性
PRIVATE
PUBLIC
TEAM
函数
bucket_file_size
Python
1def bucket_file_size(value: int) -> str:bucket_limit
Python
1def bucket_limit(value: int) -> str:bucket_max_quantization_images
Python
1def bucket_max_quantization_images(value: int) -> str:bucket_nonzero_count
Python
1def bucket_nonzero_count(value: int) -> str:bucket_result_count
Python
1def bucket_result_count(value: int) -> str:bucket_rvc2_shaves
Python
1def bucket_rvc2_shaves(value: int) -> str:bucket_yolo_class_count
Python
1def bucket_yolo_class_count(value: int) -> str:bucket_zero_count
Python
1def bucket_zero_count(value: int) -> str:build_client_initialized_properties
Python
1def build_client_initialized_properties(api_key_source: ApiKeySource) -> dict[str, Any]:build_command_properties
Python
1def build_command_properties(*, command_name: CommandName, command_group: TelemetryGroup, result: TelemetryResult, duration_ms: int, failure_reason: FailureReason | None = None) -> dict[str, Any]:build_conversion_flow_properties
Python
1def build_conversion_flow_properties(conversion_run_id: str, flow_step: ConversionFlowStep, properties: dict[str, Any]) -> dict[str, Any]:build_conversion_result_properties
Python
1def build_conversion_result_properties(*, result: TelemetryResult, duration_ms: int, failure_reason: FailureReason | None = None, downloaded_file_count: int | None = None) -> dict[str, Any]:build_conversion_summary
Python
1def build_conversion_summary(*, target: str, config_source: ConfigSource, input_model_type: ModelType, invocation_surface: InvocationSurface, existing_model_reused: bool, existing_variant_reused: bool, quantization_mode: str | None, quantization_input_type: QuantizationInputType, max_quantization_images: int | None, yolo_version: str | None, yolo_class_names: list[str] | None, yolo_input_shape_provided: bool, tool_version_provided: bool, input_shape_provided: bool, download_output_dir_provided: bool, input_count: int, target_options: Mapping[str, Any]) -> dict[str, Any]:build_instance_created_properties
Python
1def build_instance_created_properties(arguments: dict[str, Any], _result: Any) -> dict[str, Any]:build_instance_downloaded_properties
Python
1def build_instance_downloaded_properties(arguments: dict[str, Any], result: Path) -> dict[str, Any]:build_instance_files_listed_properties
Python
1def build_instance_files_listed_properties(arguments: dict[str, Any], result: list[Any]) -> dict[str, Any]:build_instance_uploaded_properties
Python
1def build_instance_uploaded_properties(arguments: dict[str, Any], _result: Any) -> dict[str, Any]:build_instances_listed_properties
Python
1def build_instances_listed_properties(arguments: dict[str, Any], result: list[Any]) -> dict[str, Any]:build_model_created_properties
Python
1def build_model_created_properties(arguments: dict[str, Any], _result: Any) -> dict[str, Any]:build_model_identifier_properties
Python
1def build_model_identifier_properties(arguments: dict[str, Any], _result: Any) -> dict[str, Any]:build_model_updated_properties
Python
1def build_model_updated_properties(arguments: dict[str, Any], _result: Any) -> dict[str, Any]:build_models_listed_properties
Python
1def build_models_listed_properties(arguments: dict[str, Any], result: list[Any]) -> dict[str, Any]:build_variant_created_properties
Python
1def build_variant_created_properties(arguments: dict[str, Any], _result: Any) -> dict[str, Any]:build_variants_listed_properties
Python
1def build_variants_listed_properties(arguments: dict[str, Any], result: list[Any]) -> dict[str, Any]:capture_client_initialized
Python
1def capture_client_initialized(api_key_source: ApiKeySource):capture_conversion_configured
Python
1def capture_conversion_configured(conversion_run_id: str, properties: dict[str, Any]):capture_conversion_result
Python
1def capture_conversion_result(conversion_run_id: str, properties: dict[str, Any]):capture_operation_result
Python
1def capture_operation_result(*, spec: OperationTelemetrySpec, exc: BaseException | None, duration_ms: int, bound_arguments: dict[str, Any] | None = None):command_metadata
Python
1def command_metadata(command_path: str) -> CommandMetadata | None:command_result_from_exception
Python
1def command_result_from_exception(exc: BaseException | None) -> TelemetryResult:config_source_from_path
Python
1def config_source_from_path(path: str, *, is_archive: bool, is_yaml: bool) -> ConfigSource:conversion_failure_reason
Python
1def conversion_failure_reason(exc: BaseException | None, *, phase: ConversionPhase) -> FailureReason | None:current_conversion_run_id
Python
1def current_conversion_run_id() -> str | None:failure_reason_from_exception
Python
1def failure_reason_from_exception(exc: BaseException | None) -> FailureReason | None:file_extension
Python
1def file_extension(path: str | Path) -> str:get_component_telemetry
Python
1def get_component_telemetry() -> Telemetry:get_or_create_conversion_run_id
Python
1def get_or_create_conversion_run_id() -> str:identifier_type
Python
1def identifier_type(identifier: UUID | str | None) -> IdentifierType | None:instrument_hubai_cli
Python
1def instrument_hubai_cli(app: cyclopts.App):invocation_surface
Python
1def invocation_surface() -> InvocationSurface:pop_cli_failure_reason
Python
1def pop_cli_failure_reason() -> FailureReason | None:quantization_input_type
Python
1def quantization_input_type(quantization_data: str | None, *, custom_zip: bool = False) -> QuantizationInputType:record_cli_failure_reason
Python
1def record_cli_failure_reason(exc: BaseException):reset_conversion_run_id
Python
1def reset_conversion_run_id(previous_value: str | None):sort_mode
Python
1def sort_mode(value: str, *, allowed: set[str]) -> str:telemetry_operation
Python
1def telemetry_operation(spec: OperationTelemetrySpec) -> Callable[[Callable[..., Any]], Callable[..., Any]]:visibility_filter
Python
1def visibility_filter(is_public: bool | None) -> VisibilityFilterValue:visibility_value
Python
1def visibility_value(is_public: bool | None) -> VisibilityValue: