func (c *RefreshClient) RefreshWithMetricsOnly(ctx context.Context, metrics map[charmmetrics.MetricKey]map[charmmetrics.MetricKey]string) error {
	c.logger.Tracef("RefreshWithMetricsOnly(%+v)", metrics)
	m, err := contextMetrics(metrics)
	if err != nil {
		return errors.Trace(err)
	}
	req := transport.RefreshRequest{
		Context: []transport.RefreshRequestContext{},
		Actions: []transport.RefreshRequestAction{},
		Metrics: m,
	}

	// No need to ensure data which is not expected.
	ensure := func(responses []transport.RefreshResponse) error { return nil }

	_, err = c.refresh(ctx, ensure, req)
	return err
}
// RefreshWithMetricsOnly is to provide metrics without context or actions. Used
// as part of the charm revision updater facade.
RefreshWithMetricsOnly is to provide metrics without context or actions. Used
as part of the charm revision updater facade.
// RefreshWithMetricsOnly is to provide metrics without context or actions . Used // as part of the charm revision updater facade .
func (c *RefreshClient) RefreshWithMetricsOnly(ctx context.Context, metrics map[charmmetrics.MetricKey]map[charmmetrics.MetricKey]string) error {
	c.logger.Tracef("RefreshWithMetricsOnly(%+v)", metrics)
	m, err := contextMetrics(metrics)
	if err != nil {
		return errors.Trace(err)
	}
	req := transport.RefreshRequest{
		Context: []transport.RefreshRequestContext{},
		Actions: []transport.RefreshRequestAction{},
		Metrics: m,
	}
	ensure := func(responses []transport.RefreshResponse) error { return nil }
	_, err = c.refresh(ctx, ensure, req)
	return err
}
func ( c * RefreshClient ) RefreshWithMetricsOnly ( ctx context . Context , metrics map [ charmmetrics . MetricKey ] map [ charmmetrics . MetricKey ] string ) error { c . logger . Tracef ( " " , metrics ) m , err := contextMetrics ( metrics ) if err != nil { return errors . Trace ( err ) } req := transport . RefreshRequest { Context : [ ] transport . RefreshRequestContext { } , Actions : [ ] transport . RefreshRequestAction { } , Metrics : m , } ensure := func ( responses [ ] transport . RefreshResponse ) error { return nil } _ , err = c . refresh ( ctx , ensure , req ) return err }
RefreshWithMetricsOnly is to provide metrics without context or actions.
RefreshWithMetricsOnly is to provide metrics without context or actions .
// No need to ensure data which is not expected.