Documentation ¶
Overview ¶
Package metricfilter contains the necessary properties for testing *cloudwatchlogs.MetricFilter objects
Index ¶
- type MetricFilter
- func (m *MetricFilter) Assert(t *testing.T, filters ...*cloudwatchlogs.MetricFilter) *MetricFilter
- func (m *MetricFilter) Filter(filter shared.Filter) *MetricFilter
- func (m *MetricFilter) FilterName(name string) *MetricFilter
- func (m *MetricFilter) First(t *testing.T, filters ...*cloudwatchlogs.MetricFilter) *MetricFilter
- func (m *MetricFilter) LogGroupName(name string) *MetricFilter
- func (m *MetricFilter) Name(name string) *MetricFilter
- func (m *MetricFilter) Selected() *cloudwatchlogs.MetricFilter
- func (m *MetricFilter) TDefault(value float64) *MetricFilter
- func (m *MetricFilter) TName(name string) *MetricFilter
- func (m *MetricFilter) TNamespace(namespace string) *MetricFilter
- func (m *MetricFilter) TValue(value string) *MetricFilter
- func (m *MetricFilter) TransformationDefaultValue(value float64) *MetricFilter
- func (m *MetricFilter) TransformationMetricValue(value string) *MetricFilter
- func (m *MetricFilter) TransformationName(name string) *MetricFilter
- func (m *MetricFilter) TransformationNamespace(namespace string) *MetricFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricFilter ¶
type MetricFilter struct {
// contains filtered or unexported fields
}
MetricFilter contains the necessary properties for testing *cloudwatchlogs.MetricFilter objects
func (*MetricFilter) Assert ¶
func (m *MetricFilter) Assert(t *testing.T, filters ...*cloudwatchlogs.MetricFilter) *MetricFilter
Assert applies all filters that have been called, resets the list of filters, fails the test if there is not exactly one match, and stores the matched filter if filters is not provided, *cloudwatchlogs.MetricFilter objects will be retreived from AWS
func (*MetricFilter) Filter ¶
func (m *MetricFilter) Filter(filter shared.Filter) *MetricFilter
Filter adds the 'filter' provided to the filter list
func (*MetricFilter) FilterName ¶
func (m *MetricFilter) FilterName(name string) *MetricFilter
FilterName adds the FilterName filter to the filter list the FilterName filter: filters filters by FilterName where 'name' provided is the expected FilterName value
func (*MetricFilter) First ¶
func (m *MetricFilter) First(t *testing.T, filters ...*cloudwatchlogs.MetricFilter) *MetricFilter
First applies all filters that have been called, resets the list of filters, fails the test if there are no matches, and stores the first match if filters is not provided, *cloudwatchlogs.MetricFilter objects will be retreived from AWS
func (*MetricFilter) LogGroupName ¶
func (m *MetricFilter) LogGroupName(name string) *MetricFilter
LogGroupName adds the LogGroupName filter to the filter list the LogGroupName filter: filters filters by LogGroupName where 'name' provided is the expected LogGroupName value
func (*MetricFilter) Name ¶
func (m *MetricFilter) Name(name string) *MetricFilter
Name is an alias to FilterName filter which filters by the FilterName field
func (*MetricFilter) Selected ¶
func (m *MetricFilter) Selected() *cloudwatchlogs.MetricFilter
Selected returns the currently selected *cloudwatchlogs.MetricFilter
func (*MetricFilter) TDefault ¶
func (m *MetricFilter) TDefault(value float64) *MetricFilter
TDefault is an alias to TransformationDefaultValue
func (*MetricFilter) TName ¶
func (m *MetricFilter) TName(name string) *MetricFilter
TName is an alias to TransformationName
func (*MetricFilter) TNamespace ¶
func (m *MetricFilter) TNamespace(namespace string) *MetricFilter
TNamespace is an alias to TransformationNamespace
func (*MetricFilter) TValue ¶
func (m *MetricFilter) TValue(value string) *MetricFilter
TValue is an alias to TransformationMetricValue
func (*MetricFilter) TransformationDefaultValue ¶
func (m *MetricFilter) TransformationDefaultValue(value float64) *MetricFilter
TransformationDefaultValue adds the TransformationDefaultValue filter to the filter list the TransformationDefaultValue filter: filters filters by TransformationDefaultValue where 'value' provided is the expected MetricTransformations[0].DefaultValue value
func (*MetricFilter) TransformationMetricValue ¶
func (m *MetricFilter) TransformationMetricValue(value string) *MetricFilter
TransformationMetricValue adds the TransformationMetricValue filter to the filter list the TransformationMetricValue filter: filters filters by TransformationMetricValue where 'value' provided is the expected MetricTransformations[0].MetricValue value
func (*MetricFilter) TransformationName ¶
func (m *MetricFilter) TransformationName(name string) *MetricFilter
TransformationName adds the TransformationName filter to the filter list the TransformationName filter: filters filters by TransformationName where 'name' provided is the expected MetricTransformations[0].MetricName value
func (*MetricFilter) TransformationNamespace ¶
func (m *MetricFilter) TransformationNamespace(namespace string) *MetricFilter
TransformationNamespace adds the TransformationNamespace filter to the filter list the TransformationNamespace filter: filters filters by TransformationNamespace where 'namespace' provided is the expected MetricTransformations[0].MetricNamespace value