func (client *Client) GetStreamRuleContext(
	ctx context.Context, streamID, ruleID string,
) (*graylog.StreamRule, *ErrorInfo, error) {
	// GET /streams/{streamid}/rules/{streamRuleID} Get a single stream rules
	if streamID == "" {
		return nil, nil, errors.New("stream id is required")
	}
	if ruleID == "" {
		return nil, nil, errors.New("stream rule id is required")
	}
	u, err := client.Endpoints().StreamRule(streamID, ruleID)
	if err != nil {
		return nil, nil, err
	}
	rule := &graylog.StreamRule{}
	ei, err := client.callGet(ctx, u.String(), nil, rule)
	return rule, ei, err
}
// GetStreamRuleContext returns a stream rule with a context
GetStreamRuleContext returns a stream rule with a context
// GetStreamRuleContext returns a stream rule with a context
func (client *Client) GetStreamRuleContext(
	ctx context.Context, streamID, ruleID string,
) (*graylog.StreamRule, *ErrorInfo, error) {
	if streamID == "" {
		return nil, nil, errors.New("stream id is required")
	}
	if ruleID == "" {
		return nil, nil, errors.New("stream rule id is required")
	}
	u, err := client.Endpoints().StreamRule(streamID, ruleID)
	if err != nil {
		return nil, nil, err
	}
	rule := &graylog.StreamRule{}
	ei, err := client.callGet(ctx, u.String(), nil, rule)
	return rule, ei, err
}
func ( client * Client ) GetStreamRuleContext ( ctx context . Context , streamID , ruleID string , ) ( * graylog . StreamRule , * ErrorInfo , error ) { if streamID == " " { return nil , nil , errors . New ( " " ) } if ruleID == " " { return nil , nil , errors . New ( " " ) } u , err := client . Endpoints ( ) . StreamRule ( streamID , ruleID ) if err != nil { return nil , nil , err } rule := & graylog . StreamRule { } ei , err := client . callGet ( ctx , u . String ( ) , nil , rule ) return rule , ei , err }
GetStreamRuleContext returns a stream rule with a context
GetStreamRuleContext returns a stream rule with a context
// GET /streams/{streamid}/rules/{streamRuleID} Get a single stream rules