source: vendor/google/apiclient-services/src/ToolResults/Resource/ProjectsHistoriesExecutionsStepsPerfSampleSeries.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 9 days ago

Upload project files

  • Property mode set to 100644
File size: 4.5 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\ToolResults\Resource;
19
20use Google\Service\ToolResults\ListPerfSampleSeriesResponse;
21use Google\Service\ToolResults\PerfSampleSeries;
22
23/**
24 * The "perfSampleSeries" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $toolresultsService = new Google\Service\ToolResults(...);
28 * $perfSampleSeries = $toolresultsService->projects_histories_executions_steps_perfSampleSeries;
29 * </code>
30 */
31class ProjectsHistoriesExecutionsStepsPerfSampleSeries extends \Google\Service\Resource
32{
33 /**
34 * Creates a PerfSampleSeries. May return any of the following error code(s): -
35 * ALREADY_EXISTS - PerfMetricSummary already exists for the given Step -
36 * NOT_FOUND - The containing Step does not exist (perfSampleSeries.create)
37 *
38 * @param string $projectId The cloud project
39 * @param string $historyId A tool results history ID.
40 * @param string $executionId A tool results execution ID.
41 * @param string $stepId A tool results step ID.
42 * @param PerfSampleSeries $postBody
43 * @param array $optParams Optional parameters.
44 * @return PerfSampleSeries
45 * @throws \Google\Service\Exception
46 */
47 public function create($projectId, $historyId, $executionId, $stepId, PerfSampleSeries $postBody, $optParams = [])
48 {
49 $params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'postBody' => $postBody];
50 $params = array_merge($params, $optParams);
51 return $this->call('create', [$params], PerfSampleSeries::class);
52 }
53 /**
54 * Gets a PerfSampleSeries. May return any of the following error code(s): -
55 * NOT_FOUND - The specified PerfSampleSeries does not exist
56 * (perfSampleSeries.get)
57 *
58 * @param string $projectId The cloud project
59 * @param string $historyId A tool results history ID.
60 * @param string $executionId A tool results execution ID.
61 * @param string $stepId A tool results step ID.
62 * @param string $sampleSeriesId A sample series id
63 * @param array $optParams Optional parameters.
64 * @return PerfSampleSeries
65 * @throws \Google\Service\Exception
66 */
67 public function get($projectId, $historyId, $executionId, $stepId, $sampleSeriesId, $optParams = [])
68 {
69 $params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'sampleSeriesId' => $sampleSeriesId];
70 $params = array_merge($params, $optParams);
71 return $this->call('get', [$params], PerfSampleSeries::class);
72 }
73 /**
74 * Lists PerfSampleSeries for a given Step. The request provides an optional
75 * filter which specifies one or more PerfMetricsType to include in the result;
76 * if none returns all. The resulting PerfSampleSeries are sorted by ids. May
77 * return any of the following canonical error codes: - NOT_FOUND - The
78 * containing Step does not exist
79 * (perfSampleSeries.listProjectsHistoriesExecutionsStepsPerfSampleSeries)
80 *
81 * @param string $projectId The cloud project
82 * @param string $historyId A tool results history ID.
83 * @param string $executionId A tool results execution ID.
84 * @param string $stepId A tool results step ID.
85 * @param array $optParams Optional parameters.
86 *
87 * @opt_param string filter Specify one or more PerfMetricType values such as
88 * CPU to filter the result
89 * @return ListPerfSampleSeriesResponse
90 * @throws \Google\Service\Exception
91 */
92 public function listProjectsHistoriesExecutionsStepsPerfSampleSeries($projectId, $historyId, $executionId, $stepId, $optParams = [])
93 {
94 $params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId];
95 $params = array_merge($params, $optParams);
96 return $this->call('list', [$params], ListPerfSampleSeriesResponse::class);
97 }
98}
99
100// Adding a class alias for backwards compatibility with the previous class name.
101class_alias(ProjectsHistoriesExecutionsStepsPerfSampleSeries::class, 'Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsStepsPerfSampleSeries');
Note: See TracBrowser for help on using the repository browser.