B `@sGdddZdS)cseZdZfddZeedddZedddZeeed d d Zeed d dZeed ddZ eed ddZ edddZ Z S) AsyncInsightcst||_dS)N)super__init___session)selfsession) __class__q/private/var/folders/7j/8686xlfs15q3tgljmghtvg0r0000gn/T/pip-target-isidps9b/lib/python/meraki/aio/api/insight.pyrs zAsyncInsight.__init__) network_idapplication_idc sb|tddddgdd}d|d|d }d d d d gfdd|D}|j|||S)aM **Get application health by time** https://developer.cisco.com/meraki/api-v1/#!get-network-insight-application-health-by-time - network_id (string): (required) - application_id (string): (required) - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 7 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 7 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 7 days. The default is 2 hours. - resolution (integer): The time resolution in seconds for returned data. The valid resolutions are: 60, 300, 3600, 86400. The default is 300. insightZmonitor applicationsZ healthByTime(getNetworkInsightApplicationHealthByTime)tags operationz /networks/z/insight/applications/z /healthByTimet0t1Ztimespan resolutioncs&i|]\}}|kr||qSr)strip).0kv) query_paramsrr szIAsyncInsight.getNetworkInsightApplicationHealthByTime..)updatelocalsitemsrget)rr r kwargsmetadataresourceparamsr)rr rs   z5AsyncInsight.getNetworkInsightApplicationHealthByTime)organizationIdcCs*dddgdd}d|d}|j||S)z **List the monitored media servers for this organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-insight-monitored-media-servers - organizationId (string): (required) r configuremonitoredMediaServers+getOrganizationInsightMonitoredMediaServers)rrz/organizations/z/insight/monitoredMediaServers)rr)rr"rr rrr r%$s  z8AsyncInsight.getOrganizationInsightMonitoredMediaServers)r"nameaddressc sX|tdddgdd}d|d}dd d gfd d |D}|j|||S) a **Add a media server to be monitored for this organization** https://developer.cisco.com/meraki/api-v1/#!create-organization-insight-monitored-media-server - organizationId (string): (required) - name (string): The name of the VoIP provider - address (string): The IP address (IPv4 only) or hostname of the media server to monitor - bestEffortMonitoringEnabled (boolean): Indicates that if the media server doesn't respond to ICMP pings, the nearest hop will be used in its stead. r r#r$-createOrganizationInsightMonitoredMediaServer)rrz/organizations/z/insight/monitoredMediaServersr&r'bestEffortMonitoringEnabledcs&i|]\}}|kr||qSr)r)rrr) body_paramsrr rJszNAsyncInsight.createOrganizationInsightMonitoredMediaServer..)rrrrpost)rr"r&r'rrr payloadr)r*r r(6s   z:AsyncInsight.createOrganizationInsightMonitoredMediaServer)r"monitoredMediaServerIdcCs.dddgdd}d|d|}|j||S)a **Return a monitored media server for this organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-insight-monitored-media-server - organizationId (string): (required) - monitoredMediaServerId (string): (required) r r#r$*getOrganizationInsightMonitoredMediaServer)rrz/organizations/z/insight/monitoredMediaServers/)rr)rr"r-rr rrr r.Ps z7AsyncInsight.getOrganizationInsightMonitoredMediaServerc s\|tdddgdd}d|d|}dd d gfd d |D}|j|||S) aN **Update a monitored media server for this organization** https://developer.cisco.com/meraki/api-v1/#!update-organization-insight-monitored-media-server - organizationId (string): (required) - monitoredMediaServerId (string): (required) - name (string): The name of the VoIP provider - address (string): The IP address (IPv4 only) or hostname of the media server to monitor - bestEffortMonitoringEnabled (boolean): Indicates that if the media server doesn't respond to ICMP pings, the nearest hop will be used in its stead. r r#r$-updateOrganizationInsightMonitoredMediaServer)rrz/organizations/z/insight/monitoredMediaServers/r&r'r)cs&i|]\}}|kr||qSr)r)rrr)r*rr rxszNAsyncInsight.updateOrganizationInsightMonitoredMediaServer..)rrrrput)rr"r-rrr r,r)r*r r/cs  z:AsyncInsight.updateOrganizationInsightMonitoredMediaServercCs.dddgdd}d|d|}|j||S)a **Delete a monitored media server from this organization** https://developer.cisco.com/meraki/api-v1/#!delete-organization-insight-monitored-media-server - organizationId (string): (required) - monitoredMediaServerId (string): (required) r r#r$-deleteOrganizationInsightMonitoredMediaServer)rrz/organizations/z/insight/monitoredMediaServers/)rdelete)rr"r-rr rrr r1~s z:AsyncInsight.deleteOrganizationInsightMonitoredMediaServer)organization_idcCs*dddgdd}d|d}|j||S)z **List all Insight tracked applications** https://developer.cisco.com/meraki/api-v1/#!get-organization-insight-applications - organization_id (string): (required) r r#r "getOrganizationInsightApplications)rrz/organizations/z/insight/applications)rr)rr3rr rrr r4s  z/AsyncInsight.getOrganizationInsightApplications) __name__ __module__ __qualname__rstrrr%r(r.r/r1r4 __classcell__rr)rr rs rN)rrrrr