{"id":30690517,"url":"https://github.com/stackguardian/sg-runner-autoscaler","last_synced_at":"2025-09-02T02:43:04.528Z","repository":{"id":294473170,"uuid":"895638013","full_name":"StackGuardian/sg-runner-autoscaler","owner":"StackGuardian","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-13T07:20:47.000Z","size":75,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-13T09:21:07.244Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StackGuardian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-28T15:28:04.000Z","updated_at":"2025-08-13T07:20:52.000Z","dependencies_parsed_at":"2025-08-13T09:11:00.027Z","dependency_job_id":"3339c4a6-b0f4-4405-a97c-e58e637efa2e","html_url":"https://github.com/StackGuardian/sg-runner-autoscaler","commit_stats":null,"previous_names":["stackguardian/sg-runner-autoscaler"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/StackGuardian/sg-runner-autoscaler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackGuardian%2Fsg-runner-autoscaler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackGuardian%2Fsg-runner-autoscaler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackGuardian%2Fsg-runner-autoscaler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackGuardian%2Fsg-runner-autoscaler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StackGuardian","download_url":"https://codeload.github.com/StackGuardian/sg-runner-autoscaler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackGuardian%2Fsg-runner-autoscaler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273222602,"owners_count":25066793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-02T02:42:59.607Z","updated_at":"2025-09-02T02:43:04.507Z","avatar_url":"https://github.com/StackGuardian.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stackguardian Autoscaler\n\nThe **Stackguardian Autoscaler** module provides a template to autoscale stackguardian private runners.\n\n## Overview\n\n`stackguardian_autoscaler.py` contains an abstract base class, `CloudService`, that describes the methods required to interact with the cloud provider. To use this module, you'll need to implement the `CloudService` class for your chosen cloud provider.\n\nAn example implementation for **Azure** can be found in the `azure_service.py` file.\n\n## Usage\n\n1. **Implement the Cloud Service**:  \n   To autoscale on your chosen cloud platform, extend the `CloudService` class and implement the required methods.\n\n   ```python\n   class XYZCloudService(CloudService):\n       def method(self):\n           # Implement the logic for method\n           pass\n\n   ```\n\n   Refer the example for Azure (in `azure_service.py`):\n\n2. **Initialize the Autoscaler**:\n   Once your cloud service is implemented, create an instance of the StackguardianAutoscaler class, passing your cloud service class to it.\n\n   Example:\n\n   ```python\n   from stackguardian_autoscaler import StackguardianAutoscaler\n   from azure_service import AzureCloudService\n\n   autoscaler = StackguardianAutoscaler(cloud_service=AzureCloudService)\n   ```\n\n3. **Start Autoscaling**:\n   Call the start() method to initiate autoscaling.\n\n   Example:\n\n   ```python\n     autoscaler.start()\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackguardian%2Fsg-runner-autoscaler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackguardian%2Fsg-runner-autoscaler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackguardian%2Fsg-runner-autoscaler/lists"}