Close httplib2 connections.
writeInsight(location, body=None, x__xgafv=None)
Write the data insights to workload manager data warehouse.
close()
Close httplib2 connections.
writeInsight(location, body=None, x__xgafv=None)
Write the data insights to workload manager data warehouse. Args: location: string, Required. The GCP location. The format is: projects/{project}/locations/{location}. (required) body: object, The request body. The object takes the form of: { # Request for sending the data insights. "insight": { # A presentation of host resource usage where the workload runs. # Required. The metrics data details. "instanceId": "A String", # Required. The instance id where the insight is generated from "sapDiscovery": { # The schema of SAP system discovery data. # The insights data for SAP system discovery. This is a copy of SAP System proto and should get updated whenever that one changes. "applicationLayer": { # Message describing the system component. # Optional. An SAP system may run without an application layer. "applicationProperties": { # A set of properties describing an SAP Application layer. # Optional. The component is a SAP application. "applicationType": "A String", # Required. Type of the application. Netweaver, etc. "ascsUri": "A String", # Optional. Resource URI of the recognized ASCS host of the application. "nfsUri": "A String", # Optional. Resource URI of the recognized shared NFS of the application. May be empty if the application server has only a single node. }, "databaseProperties": { # A set of properties describing an SAP Database layer. # Optional. The component is a SAP database. "databaseType": "A String", # Required. Type of the database. HANA, DB2, etc. "primaryInstanceUri": "A String", # Required. URI of the recognized primary instance of the database. "sharedNfsUri": "A String", # Optional. URI of the recognized shared NFS of the database. May be empty if the database has only a single node. }, "hostProject": "A String", # Required. Pantheon Project in which the resources reside. "resources": [ # Optional. The resources in a component. { # Message describing a resource. "relatedResources": [ # Optional. A list of resource URIs related to this resource. "A String", ], "resourceKind": "A String", # Required. ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc. "resourceType": "A String", # Required. The type of this resource. "resourceUri": "A String", # Required. URI of the resource, includes project, location, and name. "updateTime": "A String", # Required. Unix timestamp of when this resource last had its discovery data updated. }, ], "sid": "A String", # Optional. The SAP identifier, used by the SAP software and helps differentiate systems for customers. }, "databaseLayer": { # Message describing the system component. # Required. An SAP System must have a database. "applicationProperties": { # A set of properties describing an SAP Application layer. # Optional. The component is a SAP application. "applicationType": "A String", # Required. Type of the application. Netweaver, etc. "ascsUri": "A String", # Optional. Resource URI of the recognized ASCS host of the application. "nfsUri": "A String", # Optional. Resource URI of the recognized shared NFS of the application. May be empty if the application server has only a single node. }, "databaseProperties": { # A set of properties describing an SAP Database layer. # Optional. The component is a SAP database. "databaseType": "A String", # Required. Type of the database. HANA, DB2, etc. "primaryInstanceUri": "A String", # Required. URI of the recognized primary instance of the database. "sharedNfsUri": "A String", # Optional. URI of the recognized shared NFS of the database. May be empty if the database has only a single node. }, "hostProject": "A String", # Required. Pantheon Project in which the resources reside. "resources": [ # Optional. The resources in a component. { # Message describing a resource. "relatedResources": [ # Optional. A list of resource URIs related to this resource. "A String", ], "resourceKind": "A String", # Required. ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc. "resourceType": "A String", # Required. The type of this resource. "resourceUri": "A String", # Required. URI of the resource, includes project, location, and name. "updateTime": "A String", # Required. Unix timestamp of when this resource last had its discovery data updated. }, ], "sid": "A String", # Optional. The SAP identifier, used by the SAP software and helps differentiate systems for customers. }, "metadata": { # Message describing SAP discovery system metadata # Optional. The metadata for SAP system discovery data. "customerRegion": "A String", # Optional. Customer region string for customer's use. Does not represent GCP region. "definedSystem": "A String", # Optional. Customer defined, something like "E-commerce pre prod" "environmentType": "A String", # Optional. Should be "prod", "QA", "dev", "staging", etc. "sapProduct": "A String", # Optional. This SAP product name }, "systemId": "A String", # Output only. A combination of database SID, database instance URI and tenant DB name to make a unique identifier per-system. "updateTime": "A String", # Required. Unix timestamp this system has been updated last. }, "sapValidation": { # A presentation of SAP workload insight. The schema of SAP workloads validation related data. # The insights data for the SAP workload validation. "validationDetails": [ # Optional. A list of SAP validation metrics data. { # Message describing the SAP validation metrics. "details": { # Optional. The pairs of metrics data: field name & field value. "a_key": "A String", }, "sapValidationType": "A String", # Optional. The SAP system that the validation data is from. }, ], }, "sentTime": "A String", # Output only. [Output only] Create time stamp "sqlserverValidation": { # A presentation of SQLServer workload insight. The schema of SqlServer workloads validation related data. # The insights data for the sqlserver workload validation. "agentVersion": "A String", # Optional. The agent version collected this data point "instance": "A String", # Required. The instance_name of the instance that the Insight data comes from. According to https://linter.aip.dev/122/name-suffix: field names should not use the _name suffix unless the field would be ambiguous without it. "projectId": "A String", # Required. The project_id of the cloud project that the Insight data comes from. "validationDetails": [ # Optional. A list of SqlServer validation metrics data. { # Message describing the Sqlserver validation metrics. "details": [ # Required. Details wraps map that represents collected data names and values. { # Message containing collected data names and values. "fields": { # Required. Collected data is in format. "a_key": "A String", }, }, ], "type": "A String", # Optional. The Sqlserver system that the validation data is from. }, ], }, }, "requestId": "A String", # Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # The response for write insights request. }