Exemple #1
0
 def __init__(self, project_id, client=None):
     self.project_id = project_id
     self.client = client
     if client is None:
         self.client = ServiceMonitoringServiceClient()
     self.parent = self.client.project_path(project_id)
     self.workspace_path = f'workspaces/{project_id}'
     self.project_path = f'projects/{project_id}'
Exemple #2
0
 def __init__(self, project_id):
     self.client = ServiceMonitoringServiceClient()
     self.project_id = project_id
     self.project = f'projects/{project_id}'
     self.workspace = f'workspaces/{project_id}'