ManageEngine® Applications Manager Business Hours | ||
该API可以帮助管理员在Applications Manager中配置业务时间。 业务时间是一组预设的时间,能够帮助您查看一天中指定时间的报表。业务时间API的设计支持GET和POST请求:
执行该API请求的相关参数如下:
字段 | 描述 |
mondaystarthour, tuesdaystarthour, wednesdaystarthour, thursdaystarthour, fridaystarthour, saturdaystarthour, sundaystarthour | 业务在一天中开始的小时数。 |
mondayendhour, tuesdayendhour, wednesdayendhour, thursdayendhour, fridayendhour, saturdayendhour, sundayendhour | 业务在一天中结束的时间。 |
mondaystartminute, tuesdaystartminute, wednesdaystartminute, thursdaystartminute, fridaystartminute, saturdaystartminute, sundaystartminute | 业务在一天中开始的分钟数。 |
mondayendminute, tuesdayendminute, wednesdayendminute, thursdayendminute, fridayendminute, saturdayendminute, sundayendminute |
业务在一天中结束的分钟数。 |
workingdays - (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday) | 一周的工作天数。 |
该API允许管理员用户在Applications Manager中添加业务时间。
对于XML响应:
http://[ APM Host ]:[ APM Port ]/AppManager/xml/businesshours?apikey=[ API Key ]&mondayendhour=[ Monday End Hour]&wednesdayendminute=[ Wednesday End Minute]&thursdaystarthour=[ Thursday Start Hour]&description=[Description]&name=[Name]&tuesdaystartminute=[Tuesday Start Minute]&mondaystarthour=[ Monday Start Hour]&fridaystartminute=[Friday Start Minute]&workingdays=[Working days like Monday,Tuesday,Wednesday,Thursday,Friday]&mondayendminute=[ Monday End Minute]&fridayendminute=[ Friday End Minute]&tuesdaystarthour=[ Tuesday End Hour]
对于JSON响应:
http://[ APM Host ]:[ APM Port ]/AppManager/json/businesshours?apikey=[ API Key ]&mondayendhour=[ Monday End Hour]&wednesdayendminute=[ Wednesday End Minute]&thursdaystarthour=[ Thursday Start Hour]&description=[Description]&name=[Name]&tuesdaystartminute=[Tuesday Start Minute]&mondaystarthour=[ Monday Start Hour]&fridaystartminute=[Friday Start Minute]&workingdays=[Working days like Monday,Tuesday,Wednesday,Thursday,Friday]&mondayendminute=[ Monday End Minute]&fridayendminute=[ Friday End Minute]&tuesdaystarthour=[ Tuesday End Hour]
http://app-windows:59090/AppManager/xml/businesshours?apikey=09eebdd6893db4d20e16b84dff6664f1&mondayendhour=20&wednesdayendminute=0&saturdayendhour=00&thursdayendhour=20&saturdaystarthour=00&sundaystartminute=0&sundayendminute=0&mondaystartminute=0&thursdaystarthour=08&saturdayendminute=0&fridayendhour=20&description=sample description&name=Test Business Hour&tuesdaystartminute=0&mondaystarthour=08&fridaystartminute=0&sundayendhour=00&tuesdayendminute=0&fridaystarthour=08&thursdaystartminute=0&wednesdaystarthour=08&saturdaystartminute=0&sundaystarthour=00&wednesdayendhour=20&wednesdaystartminute=0&thursdayendminute=0&tuesdayendhour=20&workingdays=Monday,Tuesday,Wednesday,Thursday,Friday&mondayendminute=0&fridayendminute=0&tuesdaystarthour=08
该API允许管理员用户在Applications Manager中编辑添加的业务时间。
对于XML响应:
http://[ APM Host ]:[ APM Port ]/AppManager/xml/businesshours?apikey=[ API Key ]&mondayendhour=[ Monday End Hour]&wednesdayendminute=[ Wednesday End Minute]&thursdaystarthour=[ Thursday Start Hour]&description=[Description]&newbusinessname=[Name]&tuesdaystartminute=[Tuesday Start Minute]&mondaystarthour=[ Monday Start Hour]&fridaystartminute=[Friday Start Minute]&workingdays=[Working days like Monday,Tuesday,Wednesday,Thursday,Friday]&businessid=[Business Id]&mondayendminute=[ Monday End Minute]&fridayendminute=[ Friday End Minute]&tuesdaystarthour=[ Tuesday End Hour]
对于JSON响应:
http://[ APM Host ]:[ APM Port ]/AppManager/json/businesshours?apikey=[ API Key ]&mondayendhour=[ Monday End Hour]&wednesdayendminute=[ Wednesday End Minute]&thursdaystarthour=[ Thursday Start Hour]&description=[Description]&newbusinessname=[Name]&tuesdaystartminute=[Tuesday Start Minute]&mondaystarthour=[ Monday Start Hour]&fridaystartminute=[Friday Start Minute]&workingdays=[Working days like Monday,Tuesday,Wednesday,Thursday,Friday]&businessid=[Business Id]&mondayendminute=[ Monday End Minute]&fridayendminute=[ Friday End Minute]&tuesdaystarthour=[ Tuesday End Hour]
http://app-windows:59090/AppManager/xml/businesshours?apikey=09eebdd6893db4d20e16b84dff6664f1&mondayendhour=20&wednesdayendminute=0&saturdayendhour=00&thursdayendhour=20&saturdaystarthour=00&sundaystartminute=0&sundayendminute=0&mondaystartminute=0&thursdaystarthour=08&saturdayendminute=0&fridayendhour=18&newbusinessname=Test Business Hour&description=sample description new description&tuesdaystartminute=0&mondaystarthour=08&fridaystartminute=0&sundayendhour=00&tuesdayendminute=0&fridaystarthour=15&thursdaystartminute=0&wednesdaystarthour=08&saturdaystartminute=0&sundaystarthour=00&wednesdayendhour=20&businessid=10000&wednesdaystartminute=0&thursdayendminute=0&tuesdayendhour=20&workingdays=Friday&mondayendminute=0&fridayendminute=0&tuesdaystarthour=08
该API允许管理员用户在Applications Manager中删除业务时间。
对于XML响应:
http://[ APM Host ]:[ APM Port ]/AppManager/xml/businesshours?apikey=[ API Key ]&businessid=[Business Id],&TO_DELETE=true
对于JSON响应:
http://[ APM Host ]:[ APM Port ]/AppManager/json/businesshours?apikey=[ API Key ]&businessid=[Business Id],&TO_DELETE=true
http://app-windows:59090/AppManager/xml/businesshours?apikey=09eebdd6893db4d20e16b84dff6664f1&businessid=10001,&TO_DELETE=true
该API允许管理员用户在Applications Manager中将业务时间以列表显示。
对于XML响应:
http://[ APM Host ]:[ APM Port ]/AppManager/xml/businesshours?apikey=[ API Key ]
对于JSON响应:
http://[ APM Host ]:[ APM Port ]/AppManager/json/businesshours?apikey=[ API Key ]
http://app-windows:59090/AppManager/xml/businesshours?apikey=09eebdd6893db4d20e16b84dff6664f1
未管理和重置状态API |
配置告警 |