{"id":19341885,"url":"https://github.com/appneta/docs-apm-api-sample-code","last_synced_at":"2026-06-20T14:32:30.080Z","repository":{"id":68363911,"uuid":"172533255","full_name":"appneta/docs-apm-api-sample-code","owner":"appneta","description":"Sample code for AppNeta APM API docs","archived":false,"fork":false,"pushed_at":"2020-05-25T21:21:19.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-24T08:45:55.067Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appneta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-02-25T15:35:33.000Z","updated_at":"2020-05-25T21:21:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"d6a684aa-db22-43f4-bc32-c9cfcdfcd41d","html_url":"https://github.com/appneta/docs-apm-api-sample-code","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/appneta/docs-apm-api-sample-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appneta%2Fdocs-apm-api-sample-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appneta%2Fdocs-apm-api-sample-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appneta%2Fdocs-apm-api-sample-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appneta%2Fdocs-apm-api-sample-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appneta","download_url":"https://codeload.github.com/appneta/docs-apm-api-sample-code/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appneta%2Fdocs-apm-api-sample-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34573729,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"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":"2024-11-10T03:33:00.489Z","updated_at":"2026-06-20T14:32:30.053Z","avatar_url":"https://github.com/appneta.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample code for AppNeta APM API\n\nThe files in this repository contain sample Python code for accessing the AppNeta APM API. Use them as a basis for understanding in order to create your own code.\n\nTo use these files:\n\n1. Clone the repository to your local system (e.g. git clone https://github.com/appneta/docs-apm-api-sample-code.git).\n\t* A local directory is created.\n1. Update the credentials.py file with your APM server URL (e.g. app-01.pm.appneta.com) and APM API credentials ([access token](https://docs.appneta.com/api-access-tokens.html)).\n1. [Download and install Python](https://www.python.org/downloads/).\n1. Run the sample programs and view the code files to see what they do and how they do it:\n\t* The \"app-...\" files (e.g. python3 app-organizations.py) retrieve a variety of APM system data.\n\t* The \"path-...\" files create/delete/show network paths identified in \"paths.csv\" file.\n\t\t* Update \"paths.csv\" with valid information then run any of the \"path-...\" files (e.g. python3 path-create.py) to see what they do.\n\t* \"aggregation-test.py\" is used to show how data is aggregated over time.\n\t* Functions used in the program files are defined in api_fns.py.\n1. Modify any of these files or create your own code to use the APM API.\n\n|**Filename**                           |**Description**                      |\n|---------------------------------------|-------------------------------------|\n|credentials.py                         |User credentials and server name     |\n|api_fns.py                             |Functions to access the APM API      |\n|   |   |\n|app-appliances.py                      |Prints monitoring point info         |\n|app-mp-status.py                       |Prints monitoring point status       |\n|app-network-path-info.py               |Prints network path info             |\n|app-network-path-stats.py              |Prints network path stats            |\n|app-network-path-status.py             |Prints network path status           |\n|app-network-path-status-group.py       |Prints network path status by group  |\n|app-network-path-status-saved-list.py  |Prints network path status by saved list            |\n|app-organizations.py                   |Prints organization info             |\n|app-web-path-info.py                   |Prints web path info                 |\n|app-web-path-stats-group.py            |Prints web path stats info by group  |\n|app-web-path-stats.py                  |Prints web path stats info           |\n|app-web-path-status-org.py             |Prints web path status by organization  |\n|app-web-path-status.py                 |Prints web path status               |\n|   |   |\n|paths.csv                              |List of paths to create/delete/show  |\n|path-create.py                         |Create paths in \"paths.csv\" file     |\n|path-delete.py                         |Delete paths in \"paths.csv\" file     |\n|path-show.py                           |Show paths in \"paths.csv\" file       |\n|   |   |\n|aggregation-test.py                    |Shows how data is aggregated         |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappneta%2Fdocs-apm-api-sample-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappneta%2Fdocs-apm-api-sample-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappneta%2Fdocs-apm-api-sample-code/lists"}