@@ -13,7 +13,7 @@ def test_supported_services(self):
1313 """
1414 Test the services supported by monitor
1515 """
16- service = self .client .monitor_service .list_supported_services ()
16+ service = self .client .monitor_service .services ()
1717 self .assertEqual (len (service ), 1 )
1818 self .assertEqual (service [0 ].label , "Databases" )
1919 self .assertEqual (service [0 ].service_type , "dbaas" )
@@ -43,7 +43,7 @@ def test_dashboard_by_ID(self):
4343 self .assertEqual (dashboard .widgets [0 ].y_label , "cpu_usage" )
4444
4545 def test_dashboard_by_service_type (self ):
46- dashboards = self .client .monitor_service .list_dashboards_by_service (
46+ dashboards = self .client .monitor_service .dashboards_by_service (
4747 service_type = "dbaas"
4848 )
4949 self .assertEqual (dashboards [0 ].type , "standard" )
@@ -66,7 +66,7 @@ def test_dashboard_by_service_type(self):
6666 self .assertEqual (dashboards [0 ].widgets [0 ].y_label , "cpu_usage" )
6767
6868 def test_get_all_dashboards (self ):
69- dashboards = self .client .monitor_service .list_monitor_dashboards ()
69+ dashboards = self .client .monitor_service .dashboards ()
7070 self .assertEqual (dashboards [0 ].type , "standard" )
7171 self .assertEqual (
7272 dashboards [0 ].created , datetime .datetime (2024 , 10 , 10 , 5 , 1 , 58 )
@@ -87,15 +87,15 @@ def test_get_all_dashboards(self):
8787 self .assertEqual (dashboards [0 ].widgets [0 ].y_label , "cpu_usage" )
8888
8989 def test_specific_service_details (self ):
90- data = self .client .monitor_service .list_service_by_type (
90+ data = self .client .monitor_service .service_by_type (
9191 service_type = "dbaas"
9292 )
9393 self .assertEqual (data [0 ].label , "Databases" )
9494 self .assertEqual (data [0 ].service_type , "dbaas" )
9595
9696 def test_metric_definitions (self ):
9797
98- metrics = self .client .monitor_service .list_metric_definitions (
98+ metrics = self .client .monitor_service .metric_definitions (
9999 service_type = "dbaas"
100100 )
101101 self .assertEqual (
0 commit comments