SnykProjectHistory

Model for Snyk Project History (v1 API).

  1. Overview

Overview

This model represents the history of a Snyk project, including snapshots of issue counts and dependencies over time. Uses the Snyk v1 API endpoint: /org/{orgId}/project/{projectId}/history

import clearskies
from clearskies_snyk.models import SnykProjectHistory


def my_handler(snyk_project_history: SnykProjectHistory):
    # Fetch history for a project
    history = snyk_project_history.where("org_id=org-id-123").where("project_id=project-id-456")
    for snapshot in history:
        print(f"Snapshot: {snapshot.created} - Issues: {snapshot.issue_counts}")