Coder Social home page Coder Social logo

atlas-wont-let-me-rest's Introduction

atlas-wont-let-me-rest

RIPE Atlas公式のREST APIを素早く使えるようにするヘルパースクリプト。
RIPE-NCC/ripe-atlas-toolsでは物足りないが、時間を溶かしたくない人。あるいは頻回の2FAで腱鞘炎になった人向け。

Usage

Hiddenも含めて自分のProbeを表示
```powershell
./asap.ps1 -Api /api/v2/probes/my/?hidden=true

Hiddenも含めて自分のMeasurementsをVSCodeに表示

./asap.ps1 -Api "/api/v2/measurements/my/?sort=-start_time&hidden=true" | code -

必要なpermissionが分からない場合、API Keyに全permissionを与える初期設定も行う

./asap.ps1 -Init -Api /api/v2/measurements/

apikeyファイルを置かない場合

./asap.ps1 -Api /api/v2/measurements/ -Key XXXX-XXX-XXX-XXXX

ping measurementsを表にする

$Result = ./asap.ps1 -Api /api/v2/measurements/<msm_id>/results/?probe_ids=<prb_id>
$Result | Format-Table -Property @{Label = "timestamp"; Expression = {
    [TimeZoneInfo]::ConvertTime([DateTimeOffset]::FromUnixTimeSeconds($_.timestamp), [TimeZoneInfo]::FindSystemTimeZoneById('Asia/Tokyo'))
}}, min, avg, max
timestamp                   min  avg   max
---------                   ---  ---   ---
07/05/2024 12:49:03 +09:00 6.23 6.50  6.74
07/06/2024 00:49:06 +09:00 5.99 6.09  6.26
07/06/2024 12:49:06 +09:00 6.43 6.62  6.75
07/07/2024 00:49:04 +09:00 5.98 6.12  6.22
07/07/2024 12:49:03 +09:00 6.01 6.31  6.48
...

atlas-wont-let-me-rest's People

Contributors

nyanshiba avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.