Skip to content

Commit 3cc8bc8

Browse files
landritostephenplusplus
authored andcommitted
Regen Monitoring (#1741)
1 parent 97207ec commit 3cc8bc8

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

packages/monitoring/src/v3/group_service_api.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,10 @@ function GroupServiceApiBuilder(gaxGrpc) {
521521
return new GroupServiceApiBuilder(gaxGrpc);
522522
}
523523

524-
var groupServiceClient = require('grpc-google-monitoring-v3').client;
524+
var groupServiceClient = gaxGrpc.load([{
525+
root: require('google-proto-files')('..'),
526+
file: 'google/monitoring/v3/group_service.proto'
527+
}]);
525528
extend(this, groupServiceClient.google.monitoring.v3);
526529

527530
var grpcClients = {

packages/monitoring/src/v3/metric_service_api.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ MetricServiceApi.prototype.matchProjectFromProjectName = function(projectName) {
158158
/**
159159
* Returns a fully-qualified metric_descriptor resource name string.
160160
* @param {String} project
161-
* @param {String} metric_descriptor
161+
* @param {String} metricDescriptor
162162
* @returns {String}
163163
*/
164164
MetricServiceApi.prototype.metricDescriptorPath = function(project, metricDescriptor) {
@@ -191,7 +191,7 @@ MetricServiceApi.prototype.matchMetricDescriptorFromMetricDescriptorName = funct
191191
/**
192192
* Returns a fully-qualified monitored_resource_descriptor resource name string.
193193
* @param {String} project
194-
* @param {String} monitored_resource_descriptor
194+
* @param {String} monitoredResourceDescriptor
195195
* @returns {String}
196196
*/
197197
MetricServiceApi.prototype.monitoredResourceDescriptorPath = function(project, monitoredResourceDescriptor) {
@@ -693,7 +693,10 @@ function MetricServiceApiBuilder(gaxGrpc) {
693693
return new MetricServiceApiBuilder(gaxGrpc);
694694
}
695695

696-
var metricServiceClient = require('grpc-google-monitoring-v3').client;
696+
var metricServiceClient = gaxGrpc.load([{
697+
root: require('google-proto-files')('..'),
698+
file: 'google/monitoring/v3/metric_service.proto'
699+
}]);
697700
extend(this, metricServiceClient.google.monitoring.v3);
698701

699702
var grpcClients = {

0 commit comments

Comments
 (0)