controllers.monitoring_controller module¶
-
class
controllers.monitoring_controller.
MonitoringController
(config=None, client=None, call_back=None)[source]¶ Bases:
cohesity_management_sdk.controllers.base_controller.BaseController
A Controller to access Endpoints in the cohesity_management_sdk API.
-
get_all_job_runs
(start_time_msecs, end_time_msecs, job_types=None, env_types=None, page=None, page_size=None)[source]¶ Does a GET request to /public/monitoring/jobs.
Returns the job runs for the filters. Specifying parameters can alter the results that are returned.
- Args:
- start_time_msecs (long|int): Specifies the start time of the time
range of interest.
- end_time_msecs (long|int): Specifies the end time of the time
range of interest.
- job_types (list of string, optional): Specifies the job types for
which runs are needed.
- env_types (list of EnvTypeGetAllJobRunsEnum, optional): Specifies
the environment types of the job. Supported environment types such as ‘kView’, ‘kSQL’, ‘kVMware’, etc. NOTE: ‘kPuppeteer’ refers to Cohesity’s Remote Adapter. ‘kVMware’ indicates the VMware Protection Source environment. ‘kHyperV’ indicates the HyperV Protection Source environment. ‘kSQL’ indicates the SQL Protection Source environment. ‘kView’ indicates the View Protection Source environment. ‘kPuppeteer’ indicates the Cohesity’s Remote Adapter. ‘kPhysical’ indicates the physical Protection Source environment. ‘kPure’ indicates the Pure Storage Protection Source environment. ‘Nimble’ indicates the Nimble Storage Protection Source environment. ‘kAzure’ indicates the Microsoft’s Azure Protection Source environment. ‘kNetapp’ indicates the Netapp Protection Source environment. ‘kAgent’ indicates the Agent Protection Source environment. ‘kGenericNas’ indicates the Generic Network Attached Storage Protection Source environment. ‘kAcropolis’ indicates the Acropolis Protection Source environment. ‘kPhsicalFiles’ indicates the Physical Files Protection Source environment. ‘kIsilon’ indicates the Dell EMC’s Isilon Protection Source environment. ‘kGPFS’ indicates IBM’s GPFS Protection Source environment. ‘kKVM’ indicates the KVM Protection Source environment. ‘kAWS’ indicates the AWS Protection Source environment. ‘kExchange’ indicates the Exchange Protection Source environment. ‘kHyperVVSS’ indicates the HyperV VSS Protection Source environment. ‘kOracle’ indicates the Oracle Protection Source environment. ‘kGCP’ indicates the Google Cloud Platform Protection Source environment. ‘kFlashBlade’ indicates the Flash Blade Protection Source environment. ‘kAWSNative’ indicates the AWS Native Protection Source environment. ‘kO365’ indicates the Office 365 Protection Source environment. ‘kO365Outlook’ indicates Office 365 outlook Protection Source environment. ‘kHyperFlex’ indicates the Hyper Flex Protection Source environment. ‘kGCPNative’ indicates the GCP Native Protection Source environment. ‘kAzureNative’ indicates the Azure Native Protection Source environment. ‘kKubernetes’ indicates a Kubernetes Protection Source environment. ‘kElastifile’ indicates Elastifile Protection Source environment. ‘kAD’ indicates Active Directory Protection Source environment. ‘kRDSSnapshotManager’ indicates AWS RDS Protection Source environment. ‘kCassandra’ indicates Cassandra Protection Source environment. ‘kMongoDB’ indicates MongoDB Protection Source environment. ‘kCouchbase’ indicates Couchbase Protection Source environment. ‘kHdfs’ indicates Hdfs Protection Source environment. ‘kHive’ indicates Hive Protection Source environment. ‘kHBase’ indicates HBase Protection Source environment.
- page (int, optional): Specifies the page number in case of
pagination of response.
- page_size (int, optional): Specifies the size of the page in case
of pagination of response.
- Returns:
list of GetAllJobRunsResult: Response from the API. Success
- Raises:
- APIException: When an error occurs while fetching the data from
the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request.
-
get_job_run_info
(job_type, job_id, job_run_id)[source]¶ Does a GET request to /public/monitoring/jobRunInfo.
Returns the run details for the job run.
- Args:
job_type (string): Specifies the job type of the needed run. job_id (long|int): Specifies the job id of the needed run. job_run_id (long|int): Specifies the job run id of the needed
run.
- Returns:
GetJobRunInfoResult: Response from the API. Success
- Raises:
- APIException: When an error occurs while fetching the data from
the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request.
-
get_run_objects_details
(job_type, job_id, job_run_id)[source]¶ Does a GET request to /public/monitoring/objectDetails.
Returns the objects details for the job run.
- Args:
job_type (string): Specifies the job type of the needed run. job_id (long|int): Specifies the job id of the needed run. job_run_id (long|int): Specifies the job run id of the needed
run.
- Returns:
list of GetObjectsDetailsResult: Response from the API. Success
- Raises:
- APIException: When an error occurs while fetching the data from
the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request.
-