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.3.0.tar.gz (3.5 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.3.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: checkup_conveyor-0.3.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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.3.0.tar.gz
Algorithm Hash digest
SHA256 703d2eca12f19f80a9b8cba2d36ae82e3e96f118690e5ab98d250864af98f9f7
MD5 e3fa63d42fe6bcf3e16c8eb55528c27f
BLAKE2b-256 7ab44a9263e95cf81442ee04323de426d86ab4ba9b20c01d659f6b822d0558a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: checkup_conveyor-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bcb815def1ee869cd7e49592f955ea3a087c1a4ef2942ecd9f8add22293fc78c
MD5 d10cc0c1746b180054287eb94fe82d44
BLAKE2b-256 0d2d51b712600afc92f03b24a03c40f64c8cdb0c21f1dacf2d75b90dc6169a88

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