Hi Vidz
- is there any API available to read schedule applied to monitors in sitescope
when looking at SiteScope 11.32, you can easily use
getSchedulePreferencesSnapshot
The getSchedulePreferencesSnapshot method retrieves all schedule preferences that are available in SiteScope.
By default the monitors run with the schedule
Monitor schedule : "every day, all day"
As soon as you assign it to a different schedule, getSchedulePreferencesSnapshot reports this:
(for testing I simply used <SiteScope>\examples\integrations\api\bin\get_schedule_preferences.bat)
..
relatedTags :
name : weekdays, all day
description :
range : UD00:00-24:00,ME00:00-24:00,TE00:00-24:00,WE00:00-24:00,RE00:00-24:00,FE
00:00-24:00,SD00:00-24:00
id : 3
type : Range
relatedEntities :
-----------------------------------------------------------------
relatedTags :
name : SG_Schedule Monday 08:00 - 17:00
description :
range : UD00:00-24:00,ME08:00:00-17:00:00,TD00:00-24:00,WD00:00-24:00,RD00:00-24
:00,FD00:00-24:00,SD00:00-24:00
id : 5
type : Range
relatedEntities :
Entity type=MONITOR, Path=SiteScope\Test, Id=b29a8d43-ebd3-4e76-a2a7-a59f73deb27c, Name=ping
..
Here you can see that my monitor "SiteScope\Test\ping" runs with the schedule "SG_Schedule Monday 08:00 - 17:00"
if you look from th other way around and retrieve the full configuration via get_full_configuration,bat, you'll find
-----------------------------------------------------
Entity name : ping
-----------------------------------------------------
..
_name: ping
_schedule: _id=5
..
So here you'll find the schedule id, in the output above you'll find the schedule (with id 5) and the monitors using it.
On your second question (as far as I understood it correctly), the API doesn't offer an API function to return all API calls, for this we do have the API documentation.
Greetings
Siggi