Class: Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaCustomGrouping

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/beyondcorp_v1alpha/classes.rb,
lib/google/apis/beyondcorp_v1alpha/representations.rb,
lib/google/apis/beyondcorp_v1alpha/representations.rb

Overview

Customised grouping option that allows setting the group_by fields and also the filters togather for a configured insight request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudBeyondcorpSaasplatformInsightsV1alphaCustomGrouping

Returns a new instance of GoogleCloudBeyondcorpSaasplatformInsightsV1alphaCustomGrouping.



2554
2555
2556
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 2554

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#field_filterString

Optional. Filterable parameters to be added to the grouping clause. Available fields could be fetched by calling insight list and get APIs in BASIC view. = is the only comparison operator supported. AND is the only logical operator supported. Usage: field_filter="fieldName1=fieldVal1 AND fieldName2= fieldVal2". NOTE: Only AND conditions are allowed. NOTE: Use the filter_alias from Insight.Metadata.Field message for the filtering the corresponding fields in this filter field. (These expressions are based on the filter language described at https://google.aip.dev/160). Corresponds to the JSON property fieldFilter

Returns:

  • (String)


2546
2547
2548
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 2546

def field_filter
  @field_filter
end

#group_fieldsArray<String>

Required. Fields to be used for grouping. NOTE: Use the filter_alias from Insight.Metadata.Field message for declaring the fields to be grouped-by here. Corresponds to the JSON property groupFields

Returns:

  • (Array<String>)


2552
2553
2554
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 2552

def group_fields
  @group_fields
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2559
2560
2561
2562
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 2559

def update!(**args)
  @field_filter = args[:field_filter] if args.key?(:field_filter)
  @group_fields = args[:group_fields] if args.key?(:group_fields)
end