Changeset View
Changeset View
Standalone View
Standalone View
swh/provenance/swhgraph/archive.py
# Copyright (C) 2022 The Software Heritage developers | # Copyright (C) 2022 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
from typing import Any, Dict, Iterable, Tuple | from typing import Any, Dict, Iterable, Tuple | ||||
from google.protobuf.field_mask_pb2 import FieldMask | from google.protobuf.field_mask_pb2 import FieldMask | ||||
import grpc | import grpc | ||||
from swh.core.statsd import statsd | from swh.core.statsd import statsd | ||||
from swh.graph.rpc import swhgraph_pb2, swhgraph_pb2_grpc | from swh.graph.grpc import swhgraph_pb2, swhgraph_pb2_grpc | ||||
from swh.model.model import Sha1Git | from swh.model.model import Sha1Git | ||||
from swh.model.swhids import CoreSWHID, ObjectType | from swh.model.swhids import CoreSWHID, ObjectType | ||||
from swh.storage.interface import StorageInterface | from swh.storage.interface import StorageInterface | ||||
ARCHIVE_DURATION_METRIC = "swh_provenance_archive_graph_duration_seconds" | ARCHIVE_DURATION_METRIC = "swh_provenance_archive_graph_duration_seconds" | ||||
class ArchiveGraph: | class ArchiveGraph: | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |