@classmethod
@Dispatcher.task
def _submit_pings_by_name(cls, ping_names: List[str]):
    "\n        Collect and submit a list of pings for eventual uploading by name.\n\n        Each ping will be looked up in the known instances of\n        `glean.metrics.PingType`. If the ping isn't known, an error is logged\n        and the ping isn't queued for uploading.\n\n        If the ping currently contains no content, it will not be assembled and\n        queued for sending.\n\n        Args:\n            ping_names (list of str): List of ping names to submit.\n        "
    if (not cls.is_initialized()):
        log.error('Glean must be initialized before submitting pings.')
        return
    if (not cls.get_upload_enabled()):
        log.error('Glean must be enabled before submitting pings.')
        return
    sent_ping = _ffi.lib.glean_submit_pings_by_name(_ffi.ffi_encode_vec_string(ping_names), len(ping_names))
    if sent_ping:
        PingUploadWorker.process()
Collect and submit a list of pings for eventual uploading by name.

Each ping will be looked up in the known instances of
`glean.metrics.PingType`. If the ping isn't known, an error is logged
and the ping isn't queued for uploading.

If the ping currently contains no content, it will not be assembled and
queued for sending.

Args:
    ping_names (list of str): List of ping names to submit.
@classmethod
@Dispatcher.task
def _submit_pings_by_name(cls, ping_names: List[str]):
    "\n        Collect and submit a list of pings for eventual uploading by name.\n\n        Each ping will be looked up in the known instances of\n        `glean.metrics.PingType`. If the ping isn't known, an error is logged\n        and the ping isn't queued for uploading.\n\n        If the ping currently contains no content, it will not be assembled and\n        queued for sending.\n\n        Args:\n            ping_names (list of str): List of ping names to submit.\n        "
    if (not cls.is_initialized()):
        log.error('Glean must be initialized before submitting pings.')
        return
    if (not cls.get_upload_enabled()):
        log.error('Glean must be enabled before submitting pings.')
        return
    sent_ping = _ffi.lib.glean_submit_pings_by_name(_ffi.ffi_encode_vec_string(ping_names), len(ping_names))
    if sent_ping:
        PingUploadWorker.process()