func (client *Client) GetStreamRulesContext(
	ctx context.Context, streamID string,
) (streamRules []graylog.StreamRule, total int, ei *ErrorInfo, err error) {
	// GET /streams/{streamid}/rules Get a list of all stream rules
	u, err := client.Endpoints().StreamRules(streamID)
	if err != nil {
		return nil, 0, nil, err
	}
	body := &graylog.StreamRulesBody{}
	ei, err = client.callGet(ctx, u.String(), nil, body)
	return body.StreamRules, body.Total, ei, err
}
// GetStreamRulesContext returns a list of all stream rules with a context.
GetStreamRulesContext returns a list of all stream rules with a context.
// GetStreamRulesContext returns a list of all stream rules with a context .
func (client *Client) GetStreamRulesContext(
	ctx context.Context, streamID string,
) (streamRules []graylog.StreamRule, total int, ei *ErrorInfo, err error) {
	u, err := client.Endpoints().StreamRules(streamID)
	if err != nil {
		return nil, 0, nil, err
	}
	body := &graylog.StreamRulesBody{}
	ei, err = client.callGet(ctx, u.String(), nil, body)
	return body.StreamRules, body.Total, ei, err
}
func ( client * Client ) GetStreamRulesContext ( ctx context . Context , streamID string , ) ( streamRules [ ] graylog . StreamRule , total int , ei * ErrorInfo , err error ) { u , err := client . Endpoints ( ) . StreamRules ( streamID ) if err != nil { return nil , 0 , nil , err } body := & graylog . StreamRulesBody { } ei , err = client . callGet ( ctx , u . String ( ) , nil , body ) return body . StreamRules , body . Total , ei , err }
GetStreamRulesContext returns a list of all stream rules with a context.
GetStreamRulesContext returns a list of all stream rules with a context .
// GET /streams/{streamid}/rules Get a list of all stream rules