Skip to main content

Conveyor metrics for checkup

Project description

checkup-conveyor

Conveyor metrics plugin for checkup.

Installation

pip install checkup-conveyor

Requirements

Usage

from checkup import CheckHub
from checkup_conveyor import ConveyorProvider

results = (
    CheckHub()
    .with_metrics([])
    .with_providers([[
        ConveyorProvider(
            project_name="my-project",
            api_key="your-api-key",
            environment_name="production",
        ),
    ]])
    .measure()
)

Provider

ConveyorProvider

Provides Conveyor API context for metrics, including project name, environment name, and an authenticated API client.

Creating Custom Metrics

Extend ConveyorMetric to create custom Conveyor-based metrics:

from checkup_conveyor import ConveyorMetric

class MyConveyorMetric(ConveyorMetric):
    name = "my_conveyor_metric"
    description = "My custom Conveyor metric"

    def calculate(self, context, measurements):
        api_client = self.get_api_client(context)
        project_name = self.get_project_name(context)
        environment_name = self.get_environment_name(context)

        # Use api_client to fetch data from Conveyor
        value = ...
        return self.measure(value=value)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

checkup_conveyor-0.4.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

checkup_conveyor-0.4.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file checkup_conveyor-0.4.0.tar.gz.

File metadata

  • Download URL: checkup_conveyor-0.4.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for checkup_conveyor-0.4.0.tar.gz
Algorithm Hash digest
SHA256 aae3c7542cd52ce524666e9a86e2db9030c67b6b9fd15fdc847bbdcc864b482b
MD5 fea1155445a4a0f424dca3d6b53fa46b
BLAKE2b-256 3f8fb3935b0679ac749bcbe76753c53c813aad04be0d94cc859b555c8d91295e

See more details on using hashes here.

File details

Details for the file checkup_conveyor-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: checkup_conveyor-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for checkup_conveyor-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ebe48a012b8dfd8b49cfd40752b6d34bc7d4c1c346737e286ae03974d7df65a
MD5 1bc14fefcdb4d6333bb4145eb8c0262e
BLAKE2b-256 99d7abe3b48807f1f4b7eca81cd16821d298fdc257159913cb253cb2a465f5b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page