Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: goblet/goblet
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.12.5
Choose a base ref
...
head repository: goblet/goblet
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.13.0
Choose a head ref
  • 6 commits
  • 41 files changed
  • 3 contributors

Commits on Dec 4, 2023

  1. Fix doc formatting (#466)

    anovis authored Dec 4, 2023
    Configuration menu
    Copy the full SHA
    de121ae View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2023

  1. specify project_id for StructuredLogHandler to ensure trace is format…

    …ted properly (#468)
    
    - sort imports using isort
    quajones authored Dec 8, 2023
    Configuration menu
    Copy the full SHA
    1fdcebf View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2023

  1. Cors allow methods and custom headers (#471)

    closes #469 
    
    ```
    @app.route('/custom_cors', cors=CORSConfig(allow_origin='localhost', allow_methods=["GET"], extra_headers={"X-TEST":"X-HEADER-VALUE"}))
    def custom_cors():
        return jsonify('localhost is allowed with GET method')
    ```
    anovis authored Dec 12, 2023
    Configuration menu
    Copy the full SHA
    d35acc7 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2024

  1. Alerts refactor (#472)

    ```
        from goblet.alerts.alerts import BackendAlert, PubSubDLQAlert, UptimeAlert
        from goblet.alerts.alert_conditions import MetricCondition, CustomMetricCondition, LogMatchCondition, PubSubDLQCondition, UptimeCondition
    
            app = Goblet(function_name="alerts-test")
    
            metric_alert = BackendAlert(
                "metric",
                conditions=[
                    MetricCondition(
                        "test",
                        metric="cloudfunctions.googleapis.com/function/execution_count",
                        value=10,
                    )
                ],
            )
            log_alert = BackendAlert(
                "error",
                conditions=[LogMatchCondition("error", "severity>=ERROR")],
            )
            custom_alert = BackendAlert(
                "custom",
                conditions=[
                    CustomMetricCondition(
                        "custom",
                        metric_filter="severity=(ERROR OR CRITICAL OR ALERT OR EMERGENCY) httpRequest.status=(500 OR 501 OR 502 OR 503 OR 504)",
                        value=10,
                    )
                ],
            )
    
            app.alert(metric_alert)
            app.alert(log_alert)
            app.alert(custom_alert)
    
            @app.pubsub_subscription(
                "test",
                dlq=True,
                dlq_alerts=[
                    PubSubDLQAlert(
                        "pubsubdlq",
                        conditions=[
                            PubSubDLQCondition(
                                "pubsubdlq",
                                subscription_id="pubsub-deploy-subscription",
                            )
                        ],
                    )
                ],
            )
           def pubsub(data):
                return true
    
    @app.uptime(timeout="30s",alerts=[UptimeAlert("uptime", conditions=[UptimeCondition("uptime")])])
    def uptime_check():
        app.log.info("success")
        return "success"
    
    ```
    anovis authored Jan 3, 2024
    Configuration menu
    Copy the full SHA
    23c7ac8 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2024

  1. Fix sync and default alert type (#475)

    * Add default alert type (#473 )
    * Fix alert sync
    * Fix duplicate deployment (#474 )
    anovis authored Jan 4, 2024
    Configuration menu
    Copy the full SHA
    31c8ebf View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2024

  1. GOBLET_BUILD_TAGS and GOBLET_ARTIFACT_BUCKET for cloudfunctionv1 (#477)

    upload the code to GOBLET_UPLOAD_BUCKET tagged with first tag in
    GOBLET_BUILD_TAGS
    deploy cloudfunctionv1 from GOBLET_UPLOAD_BUCKET + GOBLET_ARTIFACT_TAG
    (closes #447 )
    mauriciowittenberg authored Jan 9, 2024
    Configuration menu
    Copy the full SHA
    b644efa View commit details
    Browse the repository at this point in the history
Loading