Skip to content

Commit

Permalink
feat(workloadmanager): update the api
Browse files Browse the repository at this point in the history
#### workloadmanager:v1

The following keys were added:
- resources.projects.resources.locations.resources.insights.methods.writeInsight (Total Keys: 12)
- schemas.Insight (Total Keys: 7)
- schemas.SapDiscovery (Total Keys: 31)
- schemas.SapValidation (Total Keys: 9)
- schemas.WriteInsightRequest (Total Keys: 4)
- schemas.WriteInsightResponse (Total Keys: 2)
  • Loading branch information
yoshi-automation committed Dec 20, 2022
1 parent ee942d9 commit 93f0e30
Show file tree
Hide file tree
Showing 3 changed files with 424 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/dyn/workloadmanager_v1.projects.locations.html
Expand Up @@ -79,6 +79,11 @@ <h2>Instance Methods</h2>
</p>
<p class="firstline">Returns the evaluations Resource.</p>

<p class="toc_element">
<code><a href="workloadmanager_v1.projects.locations.insights.html">insights()</a></code>
</p>
<p class="firstline">Returns the insights Resource.</p>

<p class="toc_element">
<code><a href="workloadmanager_v1.projects.locations.operations.html">operations()</a></code>
</p>
Expand Down
171 changes: 171 additions & 0 deletions docs/dyn/workloadmanager_v1.projects.locations.insights.html
@@ -0,0 +1,171 @@
<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}

body {
font-size: 13px;
padding: 1em;
}

h1 {
font-size: 26px;
margin-bottom: 1em;
}

h2 {
font-size: 24px;
margin-bottom: 1em;
}

h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}

pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
margin-top: 0.5em;
}

h1, h2, h3, p {
font-family: Arial, sans serif;
}

h1, h2, h3 {
border-bottom: solid #CCC 1px;
}

.toc_element {
margin-top: 0.5em;
}

.firstline {
margin-left: 2 em;
}

.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}

.details {
font-weight: bold;
font-size: 14px;
}

</style>

<h1><a href="workloadmanager_v1.html">Workload Manager API</a> . <a href="workloadmanager_v1.projects.html">projects</a> . <a href="workloadmanager_v1.projects.locations.html">locations</a> . <a href="workloadmanager_v1.projects.locations.insights.html">insights</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#writeInsight">writeInsight(location, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Write the data insights to workload manager data warehouse.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>

<div class="method">
<code class="details" id="writeInsight">writeInsight(location, body=None, x__xgafv=None)</code>
<pre>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.
&quot;insight&quot;: { # A presentation of host resource usage where the workload runs. # Required. The metrics data details.
&quot;sapDiscovery&quot;: { # 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.
&quot;applicationLayer&quot;: { # Message describing the system component. # An SAP system may run without an application layer.
&quot;applicationType&quot;: &quot;A String&quot;, # The component is a SAP application.
&quot;databaseType&quot;: &quot;A String&quot;, # The component is a SAP database.
&quot;hostProject&quot;: &quot;A String&quot;, # Pantheon Project in which the resources reside.
&quot;resources&quot;: [ # The resources in a component.
{ # Message describing a resource.
&quot;relatedResources&quot;: [ # A list of resource URIs related to this resource.
&quot;A String&quot;,
],
&quot;resourceKind&quot;: &quot;A String&quot;, # ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc.
&quot;resourceType&quot;: &quot;A String&quot;, # The type of this resource.
&quot;resourceUri&quot;: &quot;A String&quot;, # URI of the resource, includes project, location, and name.
&quot;updateTime&quot;: &quot;A String&quot;, # Unix timestamp of when this resource last had its discovery data updated.
},
],
&quot;sid&quot;: &quot;A String&quot;, # The sap identifier, used by the SAP software and helps differentiate systems for customers.
},
&quot;databaseLayer&quot;: { # Message describing the system component. # An SAP System must have a database.
&quot;applicationType&quot;: &quot;A String&quot;, # The component is a SAP application.
&quot;databaseType&quot;: &quot;A String&quot;, # The component is a SAP database.
&quot;hostProject&quot;: &quot;A String&quot;, # Pantheon Project in which the resources reside.
&quot;resources&quot;: [ # The resources in a component.
{ # Message describing a resource.
&quot;relatedResources&quot;: [ # A list of resource URIs related to this resource.
&quot;A String&quot;,
],
&quot;resourceKind&quot;: &quot;A String&quot;, # ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc.
&quot;resourceType&quot;: &quot;A String&quot;, # The type of this resource.
&quot;resourceUri&quot;: &quot;A String&quot;, # URI of the resource, includes project, location, and name.
&quot;updateTime&quot;: &quot;A String&quot;, # Unix timestamp of when this resource last had its discovery data updated.
},
],
&quot;sid&quot;: &quot;A String&quot;, # The sap identifier, used by the SAP software and helps differentiate systems for customers.
},
&quot;metadata&quot;: { # Message describing SAP discovery system metadata # The metadata for SAP system discovery data.
&quot;customerRegion&quot;: &quot;A String&quot;, # Customer region string for customer&#x27;s use. Does not represent GCP region.
&quot;definedSystem&quot;: &quot;A String&quot;, # Customer defined, something like &quot;E-commerce pre prod&quot;
&quot;environmentType&quot;: &quot;A String&quot;, # Should be &quot;prod&quot;, &quot;QA&quot;, &quot;dev&quot;, &quot;staging&quot;, etc.
&quot;sapProduct&quot;: &quot;A String&quot;, # This sap product name
},
&quot;systemId&quot;: &quot;A String&quot;, # A combination of database SID, database instance URI and tenant DB name to make a unique identifier per-system.
&quot;updateTime&quot;: &quot;A String&quot;, # Unix timestamp this system has been updated last.
},
&quot;sapValidation&quot;: { # A presentation of SAP workload insight. The schema of SAP workloads validation related data. # The insights data for the sap workload validation.
&quot;validationDetails&quot;: [ # A list of SAP validation metrics data.
{ # Message describing the SAP validation metrics.
&quot;details&quot;: { # The pairs of metrics data: field name &amp; field value.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;sapValidationType&quot;: &quot;A String&quot;, # The SAP system that the validation data is from.
},
],
},
&quot;sentTime&quot;: &quot;A String&quot;, # Output only. [Output only] Create time stamp
},
&quot;requestId&quot;: &quot;A String&quot;, # 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 t he 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.
}</pre>
</div>

</body></html>

0 comments on commit 93f0e30

Please sign in to comment.