This archive is retained to ensure existing URLs remain functional. It will not contain any emails sent to this mailing list after July 1, 2024. For all messages, including those sent before and after this date, please visit the new location of the archive at https://mailman.ripe.net/archives/list/ripe-atlas@ripe.net/
[atlas] For help: launching a periodical atlas measurement
- Previous message (by thread): [atlas] Need help in launching a periodical atlas measurement
- Next message (by thread): [atlas] Inquiry: RIPE Atlas credits M Fung
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Yihao Jia
yhjia03 at gmail.com
Thu Jul 19 17:54:52 CEST 2018
Dear all, I am so sorry for using a screenshot for my last email. And I'd like to redescribe the problem I have. I'd like to launch a periodic Ping measurement (with python). It starts at UTC-now to (for example) 5 minutes later. I'd like the probe do the Ping test in every 1 minute. Thus I can have 5 results in this measurement. I am a little confused because all example on documents is one-off. I guess error might happen around "is_oneoff", "interval", "spread". source code for this test is below and in the attachment. Could you help me in checking where I get wrong? Many thanks, Yihao ---------------------------------------------------------------------------------------------- from datetime import datetime, timedelta from ripe.atlas.cousteau import ( Ping, AtlasSource, AtlasCreateRequest ) ATLAS_API_KEY = "" source2 = AtlasSource( requested=1, type="probes", value="35704" ) ping = Ping( af=4, target="202.112.51.179", description="Test for periodic Ping test", packets=1, ) def request(): atlas_request = AtlasCreateRequest( start_time=datetime.utcnow(), stop_time=(datetime.utcnow() + timedelta(minutes=5)), key=ATLAS_API_KEY, measurements=[ping], sources=[source2], is_oneoff=False, interval=60, spread=60 ) (is_success, response) = atlas_request.create() return is_success, response if __name__ == '__main__': is_success, response = request() -------------- next part -------------- An HTML attachment was scrubbed... URL: </ripe/mail/archives/ripe-atlas/attachments/20180719/1ce43c6e/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: periodic_ping.py Type: text/x-python Size: 1069 bytes Desc: not available URL: </ripe/mail/archives/ripe-atlas/attachments/20180719/1ce43c6e/attachment.py>
- Previous message (by thread): [atlas] Need help in launching a periodical atlas measurement
- Next message (by thread): [atlas] Inquiry: RIPE Atlas credits M Fung
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]