Method: Common::Utils#create_monitored_resource
- Defined in:
- lib/fluent/plugin/common.rb
#create_monitored_resource(type, labels) ⇒ Object
Create a monitored resource from type and labels.
223 224 225 226 |
# File 'lib/fluent/plugin/common.rb', line 223 def create_monitored_resource(type, labels) Google::Apis::LoggingV2::MonitoredResource.new( type: type, labels: labels.to_h) end |