This commit is contained in:
+1
-1
@@ -181,7 +181,7 @@ services:
|
|||||||
command:
|
command:
|
||||||
- '--config.file=/etc/prometheus/prometheus.yml'
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
||||||
- '--storage.tsdb.path=/prometheus'
|
- '--storage.tsdb.path=/prometheus'
|
||||||
- '--storage.tsdb.retention.time=15d' # Удерживать 15 дней
|
- '--storage.tsdb.retention.time=15d'
|
||||||
- '--web.enable-lifecycle'
|
- '--web.enable-lifecycle'
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD", "wget", "--spider", "http://localhost:9090/-/healthy" ]
|
test: [ "CMD", "wget", "--spider", "http://localhost:9090/-/healthy" ]
|
||||||
|
|||||||
@@ -14,12 +14,8 @@ public class YandexSearchResponse {
|
|||||||
|
|
||||||
@JsonProperty("images")
|
@JsonProperty("images")
|
||||||
public void setImages(List<ImageResult> images) {
|
public void setImages(List<ImageResult> images) {
|
||||||
if (images != null && images.size() > 5) {
|
|
||||||
this.images = images.subList(0, 5);
|
|
||||||
} else {
|
|
||||||
this.images = images;
|
this.images = images;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public class ImageFoundRequestHandler implements RequestHandler {
|
|||||||
checkCounterService.incrementCheckCount(fileEntity.getUserId(), fileEntity.getMimeType());
|
checkCounterService.incrementCheckCount(fileEntity.getUserId(), fileEntity.getMimeType());
|
||||||
|
|
||||||
return new BaseResponse(request.getMsgId(), MessageCode.SUCCESS.getCode(),
|
return new BaseResponse(request.getMsgId(), MessageCode.SUCCESS.getCode(),
|
||||||
MessageCode.SUCCESS.getDescription(),mapper.mapToYandexResponse(yandexReverseSearchResponse, page,
|
MessageCode.SUCCESS.getDescription(), mapper.mapToYandexResponse(yandexReverseSearchResponse, page,
|
||||||
pageSize));
|
pageSize));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user